copyWith method

  1. @override
NesSnackbarTheme copyWith({
  1. Color? normal,
  2. Color? success,
  3. Color? warning,
  4. Color? error,
})
override

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

Implementation

@override
NesSnackbarTheme copyWith({
  Color? normal,
  Color? success,
  Color? warning,
  Color? error,
}) {
  return NesSnackbarTheme(
    normal: normal ?? this.normal,
    success: success ?? this.success,
    warning: warning ?? this.warning,
    error: error ?? this.error,
  );
}