fallback static method

ZeroSwitchStyle fallback({
  1. Color? activeColor,
  2. Color? inactiveColor,
  3. Color? activeThumbColor,
  4. Color? inactiveThumbColor,
  5. double? thumbSize,
})

A default value style of ZeroSwitchStyle

Implementation

static ZeroSwitchStyle fallback({
  Color? activeColor,
  Color? inactiveColor,
  Color? activeThumbColor,
  Color? inactiveThumbColor,
  double? thumbSize,
}) =>
    ZeroSwitchStyle(
      activeColor: activeColor ?? ZeroColors.primary,
      inactiveColor: inactiveColor ?? ZeroColors.neutral[7],
      thumbSize: thumbSize ?? 22,
      activeThumbColor: activeThumbColor ?? ZeroColors.primary,
      inactiveThumbColor: inactiveThumbColor ?? ZeroColors.neutral[1],
    );