StreamCheckboxThemeData class

Theme data for customizing StreamCheckbox widgets.

{@tool snippet}

Customize checkbox appearance globally via StreamTheme:

StreamTheme(
  data: StreamThemeData(
    checkboxTheme: StreamCheckboxThemeData(
      style: StreamCheckboxStyle(
        size: StreamCheckboxSize.sm,
        fillColor: WidgetStateProperty.resolveWith((states) {
          if (states.contains(WidgetState.selected)) {
            return Colors.green;
          }
          return Colors.transparent;
        }),
      ),
    ),
  ),
  child: MyApp(),
)

{@end-tool}

See also:

Annotations

Constructors

StreamCheckboxThemeData({StreamCheckboxStyle? style})
Creates checkbox theme data with optional style overrides.
const

Properties

canMerge → bool
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → StreamCheckboxStyle?
The visual styling for checkboxes.
final

Methods

copyWith({StreamCheckboxStyle? style}) → StreamCheckboxThemeData
inherited
merge(StreamCheckboxThemeData? other) → StreamCheckboxThemeData
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

lerp(StreamCheckboxThemeData? a, StreamCheckboxThemeData? b, double t) → StreamCheckboxThemeData?
Linearly interpolate between two StreamCheckboxThemeData objects.