Skip to content

Commit 767929a

Browse files
committed
🎨 Format custom checkbox
1 parent af0bcb9 commit 767929a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

lib/src/widget/custom_checkbox.dart

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class _CheckboxRenderObjectWidget extends LeafRenderObjectWidget {
525525
required this.hovering,
526526
required this.shape,
527527
required this.side,
528-
}) : assert(tristate || value != null),
528+
}) : assert(tristate || value != null),
529529
super(key: key);
530530

531531
final bool? value;
@@ -614,7 +614,7 @@ class _RenderCheckbox extends RenderToggleable {
614614
required this.shape,
615615
required this.side,
616616
required TickerProvider vsync,
617-
}) : _oldValue = value,
617+
}) : _oldValue = value,
618618
super(
619619
value: value,
620620
tristate: tristate,
@@ -930,6 +930,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
930930
/// True if this toggleable has the input focus.
931931
bool get hasFocus => _hasFocus;
932932
bool _hasFocus;
933+
933934
set hasFocus(bool value) {
934935
if (value == _hasFocus) {
935936
return;
@@ -946,6 +947,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
946947
/// True if this toggleable is being hovered over by a pointer.
947948
bool get hovering => _hovering;
948949
bool _hovering;
950+
949951
set hovering(bool value) {
950952
if (value == _hovering) {
951953
return;
@@ -962,6 +964,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
962964
/// The [TickerProvider] for the [AnimationController]s that run the animations.
963965
TickerProvider get vsync => _vsync;
964966
TickerProvider _vsync;
967+
965968
set vsync(TickerProvider value) {
966969
if (value == _vsync) {
967970
return;
@@ -982,6 +985,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
982985
/// the new value.
983986
bool? get value => _value;
984987
bool? _value;
988+
985989
set value(bool? value) {
986990
assert(tristate || value != null);
987991
if (value == _value) {
@@ -1015,6 +1019,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
10151019
/// considered to be in its third or "indeterminate" state.
10161020
bool get tristate => _tristate;
10171021
bool _tristate;
1022+
10181023
set tristate(bool value) {
10191024
if (value == _tristate) {
10201025
return;
@@ -1028,6 +1033,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
10281033
/// For example, a checkbox should use this color when checked.
10291034
Color get activeColor => _activeColor;
10301035
Color _activeColor;
1036+
10311037
set activeColor(Color value) {
10321038
if (value == _activeColor) {
10331039
return;
@@ -1041,6 +1047,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
10411047
/// For example, a checkbox should use this color when unchecked.
10421048
Color get inactiveColor => _inactiveColor;
10431049
Color _inactiveColor;
1050+
10441051
set inactiveColor(Color value) {
10451052
if (value == _inactiveColor) {
10461053
return;
@@ -1057,6 +1064,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
10571064
/// Defaults to the [activeColor] at alpha [kRadialReactionAlpha].
10581065
Color get hoverColor => _hoverColor;
10591066
Color _hoverColor;
1067+
10601068
set hoverColor(Color value) {
10611069
if (value == _hoverColor) {
10621070
return;
@@ -1073,6 +1081,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
10731081
/// Defaults to the [activeColor] at alpha [kRadialReactionAlpha].
10741082
Color get focusColor => _focusColor;
10751083
Color _focusColor;
1084+
10761085
set focusColor(Color value) {
10771086
if (value == _focusColor) {
10781087
return;
@@ -1090,6 +1099,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
10901099
/// Defaults to the [activeColor] at alpha [kRadialReactionAlpha].
10911100
Color? get reactionColor => _reactionColor;
10921101
Color? _reactionColor;
1102+
10931103
set reactionColor(Color? value) {
10941104
if (value == _reactionColor) {
10951105
return;
@@ -1107,6 +1117,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
11071117
/// Defaults to the [activeColor] at alpha [kRadialReactionAlpha].
11081118
Color? get inactiveReactionColor => _inactiveReactionColor;
11091119
Color? _inactiveReactionColor;
1120+
11101121
set inactiveReactionColor(Color? value) {
11111122
if (value == _inactiveReactionColor) {
11121123
return;
@@ -1118,6 +1129,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
11181129
/// The splash radius for the radial reaction.
11191130
double get splashRadius => _splashRadius;
11201131
double _splashRadius;
1132+
11211133
set splashRadius(double value) {
11221134
if (value == _splashRadius) {
11231135
return;
@@ -1137,6 +1149,7 @@ abstract class RenderToggleable extends RenderConstrainedBox {
11371149
/// displayed using a grey color and its value cannot be changed.
11381150
ValueChanged<bool?>? get onChanged => _onChanged;
11391151
ValueChanged<bool?>? _onChanged;
1152+
11401153
set onChanged(ValueChanged<bool?>? value) {
11411154
if (value == _onChanged) {
11421155
return;

0 commit comments

Comments
 (0)