MonarchTheme constructor

const MonarchTheme(
  1. String name, {
  2. @Deprecated('It will be replaced by a new feature ' 'and it will be removed in a future version of Monarch.') bool isDefault = false,
})

Marks a variable as a theme that Monarch should use. The variable should be of type ThemeData and it should be a top-level library variable (i.e. not a local variable or class field).

Example:

@MonarchTheme('My Theme', isDefault: true)
final myTheme = ThemeData(...);

Implementation

const MonarchTheme(this.name,
    {@Deprecated(
        'It will be replaced by a new feature '
        'and it will be removed in a future version of Monarch.')
    this.isDefault = false});