copyWith method

StreamButtonThemeData copyWith({
  1. StreamButtonTypeStyle? primary,
  2. StreamButtonTypeStyle? secondary,
  3. StreamButtonTypeStyle? destructive,
})
inherited

Implementation

StreamButtonThemeData copyWith({
  StreamButtonTypeStyle? primary,
  StreamButtonTypeStyle? secondary,
  StreamButtonTypeStyle? destructive,
}) {
  final _this = (this as StreamButtonThemeData);

  return StreamButtonThemeData(
    primary: primary ?? _this.primary,
    secondary: secondary ?? _this.secondary,
    destructive: destructive ?? _this.destructive,
  );
}