CuteThemeOptions enum

Inheritance

Constructors

CuteThemeOptions()
const

Values

genMixinForWM → const CuteThemeOptions

Generates a mixin for the WidgetModel.

class SomeWM extends WidgetModel with AppThemeWidgetModelMixin {
  ...
}

@override
Widget build(SomeWM wm) {
  return Scaffold(
    appBar: AppBar(title: const Text('Cute Theme demo')),
    body: Padding(
      padding: wm.appTheme.paddingX1,
      child: Text('CuteTheme', style: wm.appTheme.textH1),
    ),
  );
}
genBuildContextExtension → const CuteThemeOptions

Generates an extension for the BuildContext.

@override
Widget build(BuildContext context) {
  return Text('CuteTheme', style: context.appTheme.textH1);
}
genThemeWidgetBuilder → const CuteThemeOptions

Generates a widget builder with a theme.

AppThemeBuilder(
  builder: (context, theme) => Padding(
    padding: theme.paddingX1,
    child: Text('CuteTheme', style: theme.textH1),
  ),
)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<CuteThemeOptions>
A constant List of the values in this enum, in order of their declaration.