NomoComponentColors.override constructor

NomoComponentColors.override(
  1. {required NomoColors colors,
  2. dynamic outlineContainerTheme,
  3. dynamic appBarTheme,
  4. dynamic scaffoldTheme,
  5. dynamic bottomBarTheme,
  6. dynamic siderTheme,
  7. dynamic verticalMenuTheme}
)

Implementation

factory NomoComponentColors.override({
  required NomoColors colors,
  NomoOutlineContainerColorData? outlineContainerTheme,
  NomoAppBarColorData? appBarTheme,
  NomoScaffoldColorData? scaffoldTheme,
  NomoBottomBarColorData? bottomBarTheme,
  NomoSiderColorData? siderTheme,
  NomoVerticalMenuColorData? verticalMenuTheme,
}) {
  final def = defaultComponents(colors);
  return NomoComponentColors._(
    outlineContainerTheme: outlineContainerTheme ?? def.outlineContainerTheme,
    appBarTheme: appBarTheme ?? def.appBarTheme,
    scaffoldTheme: scaffoldTheme ?? def.scaffoldTheme,
    bottomBarTheme: bottomBarTheme ?? def.bottomBarTheme,
    siderTheme: siderTheme ?? def.siderTheme,
    verticalMenuTheme: verticalMenuTheme ?? def.verticalMenuTheme,
  );
}