copyWith method

ArnaThemeData copyWith({
  1. Brightness? brightness,
  2. Color? accentColor,
  3. ArnaTextTheme? textTheme,
})

Creates a copy of this theme but with the given fields replaced with the new values.

Implementation

ArnaThemeData copyWith({
  Brightness? brightness,
  Color? accentColor,
  ArnaTextTheme? textTheme,
}) {
  return ArnaThemeData.raw(
    accentColor: accentColor ?? this.accentColor,
    brightness: brightness ?? this.brightness,
    textTheme: textTheme ?? this.textTheme,
  );
}