Class Checkbox
Inheritance
Checkbox
Inherited Members
Namespace: Unity.UIWidgets.material
Syntax
public class Checkbox : StatefulWidget
Constructors
Checkbox(Key, Nullable<Boolean>, Boolean, ValueChanged<Nullable<Boolean>>, Color, Color, Nullable<MaterialTapTargetSize>)
Declaration
public Checkbox(Key key = null, bool? value, bool tristate = false, ValueChanged<bool? > onChanged = null, Color activeColor = null, Color checkColor = null, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ))
Parameters
Type | Name | Description |
---|---|---|
Key | key | |
Nullable<Boolean> | value | |
Boolean | tristate | |
ValueChanged<Nullable<Boolean>> | onChanged | |
Color | activeColor | |
Color | checkColor | |
Nullable<MaterialTapTargetSize> | materialTapTargetSize |
Fields
activeColor
Declaration
public readonly Color activeColor
Field Value
Type | Description |
---|---|
Color |
checkColor
Declaration
public readonly Color checkColor
Field Value
Type | Description |
---|---|
Color |
materialTapTargetSize
Declaration
public readonly MaterialTapTargetSize? materialTapTargetSize
Field Value
Type | Description |
---|---|
Nullable<MaterialTapTargetSize> |
onChanged
Declaration
public readonly ValueChanged<bool? > onChanged
Field Value
Type | Description |
---|---|
ValueChanged<Nullable<Boolean>> |
tristate
Declaration
public readonly bool tristate
Field Value
Type | Description |
---|---|
Boolean |
value
Declaration
public readonly bool? value
Field Value
Type | Description |
---|---|
Nullable<Boolean> |
width
Declaration
public const float width = 18F
Field Value
Type | Description |
---|---|
Single |
Methods
createState()
Declaration
public override State createState()
Returns
Type | Description |
---|---|
State |