copyWith method

FromToDate copyWith({
  1. String? from,
  2. String? to,
})

Implementation

FromToDate copyWith({
  String? from,
  String? to,
}) {
  return FromToDate(
    from: from ?? this.from,
    to: to ?? this.to,
  );
}