copyWith method

Alert copyWith({
  1. String? title,
  2. String? body,
})

Implementation

Alert copyWith({
  String? title,
  String? body,
}) =>
    Alert(
      title: title ?? this.title,
      body: body ?? this.body,
    );