copyWith method Null safety

TimeCode copyWith(
  1. {String? title,
  2. String? startTime,
  3. String? endTime}
)

Implementation

TimeCode copyWith({
  String? title,
  String? startTime,
  String? endTime,
}) =>
    TimeCode(
      title: title ?? this.title,
      startTime: startTime ?? this.startTime,
      endTime: endTime ?? this.endTime,
    );