NomoComponentSizes.override constructor

NomoComponentSizes.override(
  1. {required NomoSizes sizes,
  2. dynamic outlineContainerTheme,
  3. dynamic appBarTheme,
  4. dynamic scaffoldTheme,
  5. dynamic bottomBarTheme,
  6. dynamic siderTheme,
  7. dynamic verticalMenuTheme}
)

Implementation

factory NomoComponentSizes.override({
  required NomoSizes sizes,
  NomoOutlineContainerSizingData? outlineContainerTheme,
  NomoAppBarSizingData? appBarTheme,
  NomoScaffoldSizingData? scaffoldTheme,
  NomoBottomBarSizingData? bottomBarTheme,
  NomoSiderSizingData? siderTheme,
  NomoVerticalMenuSizingData? verticalMenuTheme,
}) {
  final def = defaultComponents(sizes);
  return NomoComponentSizes._(
    outlineContainerTheme: outlineContainerTheme ?? def.outlineContainerTheme,
    appBarTheme: appBarTheme ?? def.appBarTheme,
    scaffoldTheme: scaffoldTheme ?? def.scaffoldTheme,
    bottomBarTheme: bottomBarTheme ?? def.bottomBarTheme,
    siderTheme: siderTheme ?? def.siderTheme,
    verticalMenuTheme: verticalMenuTheme ?? def.verticalMenuTheme,
  );
}