Inheritance
System.Object
Switch
public class Switch : StatefulWidget
Constructors
Declaration
public Switch(Key key = null, bool? value = default(bool? ), ValueChanged<bool? > onChanged = null, Color activeColor = null, Color activeTrackColor = null, Color inactiveThumbColor = null, Color inactiveTrackColor = null, ImageProvider activeThumbImage = null, ImageProvider inactiveThumbImage = null, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), DragStartBehavior dragStartBehavior = DragStartBehavior.down)
Parameters
Fields
Declaration
public readonly Color activeColor
Field Value
Declaration
public readonly ImageProvider activeThumbImage
Field Value
Declaration
public readonly Color activeTrackColor
Field Value
Declaration
public readonly DragStartBehavior dragStartBehavior
Field Value
Declaration
public readonly Color inactiveThumbColor
Field Value
Declaration
public readonly ImageProvider inactiveThumbImage
Field Value
Declaration
public readonly Color inactiveTrackColor
Field Value
Declaration
public readonly MaterialTapTargetSize? materialTapTargetSize
Field Value
Declaration
public readonly ValueChanged<bool? > onChanged
Field Value
Type |
Description |
ValueChanged<System.Nullable<System.Boolean>> |
|
Declaration
public readonly bool value
Field Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public static Switch adaptive(Key key = null, bool? value = default(bool? ), ValueChanged<bool? > onChanged = null, Color activeColor = null, Color activeTrackColor = null, Color inactiveThumbColor = null, Color inactiveTrackColor = null, ImageProvider activeThumbImage = null, ImageProvider inactiveThumbImage = null, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), DragStartBehavior dragStartBehavior = DragStartBehavior.down)
Parameters
Returns
Declaration
public override State createState()
Returns
Overrides
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides