copyWith method

CellularPlanDTO copyWith({
  1. DateTime? expiryDate,
  2. double? remainingDataMb,
  3. double? totalDataMb,
})

Implementation

CellularPlanDTO copyWith(
    {DateTime? expiryDate, double? remainingDataMb, double? totalDataMb}) {
  return CellularPlanDTO(
      expiryDate: expiryDate ?? this.expiryDate,
      remainingDataMb: remainingDataMb ?? this.remainingDataMb,
      totalDataMb: totalDataMb ?? this.totalDataMb);
}