Skip to content

Commit d8d91ae

Browse files
formatter
1 parent e92fd3b commit d8d91ae

22 files changed

+121
-121
lines changed

lib/src/chart.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import 'package:flutter/material.dart';
1010
class Chart extends StatefulWidget {
1111
/// The duration animation of charts.
1212
///
13-
/// Default to Duration(milliseconds: 300)
13+
/// Defaults to Duration(milliseconds: 300)
1414
final Duration duration;
1515

1616
/// The layers of charts.
1717
final List<ChartLayer> layers;
1818

1919
/// The padding of charts.
2020
///
21-
/// Default to EdgeInsets.zero
21+
/// Defaults to EdgeInsets.zero
2222
final EdgeInsets padding;
2323

2424
const Chart({

lib/src/models/animation/chart_color_animation.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class ChartColorAnimation implements ChartAnimation {
99

1010
/// Current value during the animation.
1111
///
12-
/// Default to Colors.transparent
12+
/// Defaults to Colors.transparent
1313
Color get current => _lastColor = _animation?.value ?? Colors.transparent;
1414

1515
/// Last value on finish/stop animation.
1616
///
17-
/// Default to Colors.transparent
17+
/// Defaults to Colors.transparent
1818
Color get last => _lastColor;
1919

2020
/// Dispose animation.

lib/src/models/animation/chart_double_animation.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class ChartDoubleAnimation implements ChartAnimation {
99

1010
/// Current value during the animation.
1111
///
12-
/// Default to 0.0
12+
/// Defaults to 0.0
1313
double get current => _lastValue = _animation?.value ?? 0.0;
1414

1515
/// Last double value on finish/stop animation.
1616
///
17-
/// Default to 0.0
17+
/// Defaults to 0.0
1818
double get last => _lastValue;
1919

2020
/// Dispose animation.

lib/src/models/animation/chart_position_animation.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class ChartPositionAnimation implements ChartAnimation {
99

1010
/// Current value during the animation.
1111
///
12-
/// Default to Offset.zero
12+
/// Defaults to Offset.zero
1313
Offset get current => _lastPosition = _animation?.value ?? Offset.zero;
1414

1515
/// Last value on finish/stop animation.
1616
///
17-
/// Default to Offset.zero
17+
/// Defaults to Offset.zero
1818
Offset get last => _lastPosition;
1919

2020
/// Dispose animation.

lib/src/models/animation/chart_size_animation.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class ChartSizeAnimation implements ChartAnimation {
99

1010
/// Current value during the animation.
1111
///
12-
/// Default to Size.zero
12+
/// Defaults to Size.zero
1313
Size get current => _lastSize = _animation?.value ?? Size.zero;
1414

1515
/// Last value on finish/stop animation.
1616
///
17-
/// Default to Size.zero
17+
/// Defaults to Size.zero
1818
Size get last => _lastSize;
1919

2020
/// Dispose animation.

lib/src/models/animation/chart_text_style_animation.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ class ChartTextStyleAnimation implements ChartAnimation {
1111

1212
/// Current value during the animation.
1313
///
14-
/// Default to TextStyle(color: Colors.transparent)
14+
/// Defaults to TextStyle(color: Colors.transparent)
1515
TextStyle get current => _lastTextStyle = _animation?.value ??
1616
const TextStyle(
1717
color: Colors.transparent,
1818
);
1919

2020
/// Last value on finish/stop animation.
2121
///
22-
/// Default to TextStyle(color: Colors.transparent)
22+
/// Defaults to TextStyle(color: Colors.transparent)
2323
TextStyle get last => _lastTextStyle;
2424

2525
/// Dispose animation.

lib/src/models/axis/data/chart_axis_data_item.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ class ChartAxisDataItem {
1919

2020
/// Current position during the animation.
2121
///
22-
/// Default to Offset.zero
22+
/// Defaults to Offset.zero
2323
Offset get currentPos => _pos.current;
2424

2525
/// Current TextStyle during the animation.
2626
///
27-
/// Default to TextStyle(color: Colors.transparent)
27+
/// Defaults to TextStyle(color: Colors.transparent)
2828
TextStyle get currentTextStyle => _textStyle.current;
2929

3030
/// Last position on finish/stop animation.
3131
///
32-
/// Default to Offset.zero
32+
/// Defaults to Offset.zero
3333
Offset get lastPos => _pos.last;
3434

3535
/// Last TextStyle on finish/stop animation.
3636
///
37-
/// Default to TextStyle(color: Colors.transparent)
37+
/// Defaults to TextStyle(color: Colors.transparent)
3838
TextStyle get lastTextStyle => _textStyle.last;
3939

4040
/// Dispose all animations.

lib/src/models/bar/chart_bar_data_item.dart

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,52 +23,52 @@ class ChartBarDataItem extends ChartDataItem {
2323

2424
/// Current touch area position during the animation.
2525
///
26-
/// Default to Offset.zero
26+
/// Defaults to Offset.zero
2727
Offset get currentTouchPos => _touch.currentPos;
2828

2929
/// Current touch area size during the animation.
3030
///
31-
/// Default to Size.zero
31+
/// Defaults to Size.zero
3232
Size get currentTouchSize => _touch.currentSize;
3333

3434
/// Current color during the animation.
3535
///
36-
/// Default to Colors.transparent
36+
/// Defaults to Colors.transparent
3737
Color get currentValueColor => _value.currentColor;
3838

3939
/// Current position during the animation.
4040
///
41-
/// Default to Offset.zero
41+
/// Defaults to Offset.zero
4242
Offset get currentValuePos => _value.currentPos;
4343

4444
/// Current size during the animation.
4545
///
46-
/// Default to Size.zero
46+
/// Defaults to Size.zero
4747
Size get currentValueSize => _value.currentSize;
4848

4949
/// Last touch area position on finish/stop animation.
5050
///
51-
/// Default to Offset.zero
51+
/// Defaults to Offset.zero
5252
Offset get lastTouchPos => _touch.lastPos;
5353

5454
/// Last touch area size on finish/stop animation.
5555
///
56-
/// Default to Size.zero
56+
/// Defaults to Size.zero
5757
Size get lastTouchSize => _touch.lastSize;
5858

5959
/// Last color on finish/stop animation.
6060
///
61-
/// Default to Colors.transparent
61+
/// Defaults to Colors.transparent
6262
Color get lastValueColor => _value.lastColor;
6363

6464
/// Last position on finish/stop animation.
6565
///
66-
/// Default to Offset.zero
66+
/// Defaults to Offset.zero
6767
Offset get lastValuePos => _value.lastPos;
6868

6969
/// Last size on finish/stop animation.
7070
///
71-
/// Default to Size.zero
71+
/// Defaults to Size.zero
7272
Size get lastValueSize => _value.lastSize;
7373

7474
/// Dispose all animations.
@@ -131,22 +131,22 @@ class _ChartBarDataItemTouch {
131131

132132
/// Current position during the animation.
133133
///
134-
/// Default to Offset.zero
134+
/// Defaults to Offset.zero
135135
Offset get currentPos => _pos.current;
136136

137137
/// Current size during the animation.
138138
///
139-
/// Default to Size.zero
139+
/// Defaults to Size.zero
140140
Size get currentSize => _size.current;
141141

142142
/// Last position on finish/stop animation.
143143
///
144-
/// Default to Offset.zero
144+
/// Defaults to Offset.zero
145145
Offset get lastPos => _pos.last;
146146

147147
/// Last size on finish/stop animation.
148148
///
149-
/// Default to Size.zero
149+
/// Defaults to Size.zero
150150
Size get lastSize => _size.last;
151151

152152
/// Dispose all animations.
@@ -193,32 +193,32 @@ class _ChartBarDataItemValue {
193193

194194
/// Current color during the animation.
195195
///
196-
/// Default to Colors.transparent
196+
/// Defaults to Colors.transparent
197197
Color get currentColor => _color.current;
198198

199199
/// Current position during the animation.
200200
///
201-
/// Default to Offset.zero
201+
/// Defaults to Offset.zero
202202
Offset get currentPos => _pos.current;
203203

204204
/// Current size during the animation.
205205
///
206-
/// Default to Size.zero
206+
/// Defaults to Size.zero
207207
Size get currentSize => _size.current;
208208

209209
/// Last color on finish/stop animation.
210210
///
211-
/// Default to Colors.transparent
211+
/// Defaults to Colors.transparent
212212
Color get lastColor => _color.last;
213213

214214
/// Last position on finish/stop animation.
215215
///
216-
/// Default to Offset.zero
216+
/// Defaults to Offset.zero
217217
Offset get lastPos => _pos.last;
218218

219219
/// Last size on finish/stop animation.
220220
///
221-
/// Default to Size.zero
221+
/// Defaults to Size.zero
222222
Size get lastSize => _size.last;
223223

224224
/// Dispose all animations.

lib/src/models/bar/chart_bar_settings.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ part of 'chart_bar_layer.dart';
44
class ChartBarSettings {
55
/// The radius of bar.
66
///
7-
/// Default to 4.0
7+
/// Defaults to 4.0
88
final BorderRadius radius;
99

1010
/// The thickness of bar.
1111
///
12-
/// Default to BorderRadius.zero
12+
/// Defaults to BorderRadius.zero
1313
final double thickness;
1414

1515
const ChartBarSettings({

lib/src/models/candle/chart_candle_data_item_value.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,32 @@ class ChartCandleDataItemValue {
2121

2222
/// Current color during the animation.
2323
///
24-
/// Default to Colors.transparent
24+
/// Defaults to Colors.transparent
2525
Color get currentColor => _color.current;
2626

2727
/// Current position during the animation.
2828
///
29-
/// Default to Offset.zero
29+
/// Defaults to Offset.zero
3030
Offset get currentPos => _pos.current;
3131

3232
/// Current size during the animation.
3333
///
34-
/// Default to Size.zero
34+
/// Defaults to Size.zero
3535
Size get currentSize => _size.current;
3636

3737
/// Last color on finish/stop animation.
3838
///
39-
/// Default to Colors.transparent
39+
/// Defaults to Colors.transparent
4040
Color get lastColor => _color.last;
4141

4242
/// Last position on finish/stop animation.
4343
///
44-
/// Default to Offset.zero
44+
/// Defaults to Offset.zero
4545
Offset get lastPos => _pos.last;
4646

4747
/// Last size on finish/stop animation.
4848
///
49-
/// Default to Size.zero
49+
/// Defaults to Size.zero
5050
Size get lastSize => _size.last;
5151

5252
/// Dispose all animations.

0 commit comments

Comments
 (0)