CheckmarkThemeData class

Defines the visual properties of Checkmark.

Descendant widgets obtain the current CheckmarkThemeData object using DrivenSpinnerTheme.of(context). Instances of CheckmarkThemeData can be customized with CheckmarkThemeData.copyWith or CheckmarkThemeData.merge.

Inheritance
Mixed-in types

Constructors

CheckmarkThemeData({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 200), Color color = Colors.black, double? weight, double? size, bool autoSize = true, bool rounded = false, bool drawCross = false, bool drawDash = true})
Creates a theme data that can be used for CheckmarkThemeData.
const
CheckmarkThemeData.from([CheckmarkThemeData? other, CheckmarkThemeData fallback = const CheckmarkThemeData()])
Creates a CheckmarkThemeData from another one that probably null.

Properties

autoSize → bool
Whether to automatically size the checkmark to fit its content.
final
color → Color
The color of the checkmark.
final
curve → Curve
The curve to apply when animating the parameters of sheet widget.
final
drawCross → bool
Whether to draw a cross when value is false.
final
drawDash → bool
Whether to draw a dash when value is null.
final
duration → Duration
The duration over which to animate the parameters of sheet widget.
final
hashCode → int
The hash code for this object.
no setteroverride
rounded → bool
Whether the spinner's stroke is rounded.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → double?
The size of the checkmark. If null, the checkmark expands to fit its parent.
final
type → Object
The extension's type.
no setterinherited
weight → double?
The stroke width of the checkmark.
final

Methods

copyWith({Curve? curve, Duration? duration, Color? color, double? weight, double? size, bool? autoSize, bool? rounded, bool? drawCross, bool? drawDash}) → CheckmarkThemeData
Creates a copy of this CheckmarkThemeData 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 CheckmarkThemeData? other, double t) → CheckmarkThemeData
Linearly interpolate with another ThemeExtension object.
override
merge(CheckmarkThemeData? other) → CheckmarkThemeData
Creates a copy of this CheckmarkThemeData 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