CheckboxThemeData class
Defines the visual properties of Checkbox.
Descendant widgets obtain the current CheckboxThemeData object using
CheckboxTheme.of(context)
. Instances of CheckboxThemeData
can be customized with CheckboxThemeData.copyWith or CheckboxThemeData.merge.
- Inheritance
-
- Object
- ThemeExtension<
CheckboxThemeData> - CheckboxThemeData
- Mixed in types
- Implementers
- Annotations
Constructors
- CheckboxThemeData({required Curve curve, required Duration duration, required CheckboxStyle style})
-
Creates a theme data that can be used for CheckboxTheme.
const
- CheckboxThemeData.defaults(BuildContext context)
-
A CheckboxThemeData with default values.
factory
- CheckboxThemeData.from([CheckboxThemeData? other])
- Creates a CheckboxThemeData from another one that probably null.
- CheckboxThemeData.ios(BuildContext context)
-
A CheckboxThemeData with ios default values.
factory
- CheckboxThemeData.m2(BuildContext context)
-
A CheckboxThemeData with material 2 default values.
factory
- CheckboxThemeData.m3(BuildContext context)
-
A CheckboxThemeData with material 3 default values.
factory
Properties
- curve → Curve
-
The curve to apply when animating the parameters of checkbox widget.
final
- duration → Duration
-
The duration over which to animate the parameters of checkbox widget.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CheckboxStyle
-
The CheckboxStyle to be applied to the checkbox widget
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{Curve? curve, Duration? duration, CheckboxStyle? style}) → CheckboxThemeData -
Creates a copy of this CheckboxThemeData but with
the given fields replaced with the new values.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
lerp(
covariant ThemeExtension< CheckboxThemeData> ? other, double t) → CheckboxThemeData -
Linearly interpolate with another ThemeExtension object.
override
-
merge(
CheckboxThemeData? other) → CheckboxThemeData - Creates a copy of this CheckboxThemeData but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- fallback → const CheckboxThemeData
- A CheckboxThemeData with some reasonable default values.