We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9179da5 commit 2e1a9faCopy full SHA for 2e1a9fa
lib/switch.dart
@@ -2,11 +2,10 @@ import 'package:flutter/cupertino.dart';
2
3
class WSwitch extends StatefulWidget {
4
const WSwitch({Key key, @required this.onChanged, this.activeColor = const Color(0xFF1AAD19)}) : super(key: key);
5
- final Function onChanged;
+ final ValueChanged<bool> onChanged;
6
final Color activeColor;
7
@override
8
State<StatefulWidget> createState() {
9
- // TODO: implement createState
10
return _Switch();
11
}
12
0 commit comments