copyWith method

  1. @override
DefaultComponentTheme copyWith({
  1. VoColors? colors,
  2. VoSizes? sizes,
  3. VoTypography? typography,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
DefaultComponentTheme copyWith({
  VoColors? colors,
  VoSizes? sizes,
  VoTypography? typography,
}) => DefaultComponentTheme(
  colors: colors ?? _colors,
  sizes: sizes ?? _sizes,
  typography: typography ?? _typography,
);