copyWith method

SnackBarInfo copyWith({
  1. String? message,
  2. SnackBarType? type,
  3. bool? showSnackBar,
})

Implementation

SnackBarInfo copyWith({
  String? message,
  SnackBarType? type,
  bool? showSnackBar,
}) {
  return SnackBarInfo(
    message: message ?? this.message,
    type: type ?? this.type,
    showSnackBar: showSnackBar ?? this.showSnackBar,
  );
}