toAppTheme method

AppTheme toAppTheme({
  1. ThemeData? defaultTheme,
})

Convert the theme to a AppTheme object.

Implementation

AppTheme toAppTheme({ThemeData? defaultTheme}) => AppTheme(
      id: id,
      data: defaultTheme ?? theme(colors),
      description: description,
      options: NyThemeOptions(colors: colors, meta: meta),
    );