copyWith method Null safety

ModernFormBottomSheetModel<T> copyWith(
  1. {String? text,
  2. T? value,
  3. Color? textColor}
)

Implementation

ModernFormBottomSheetModel<T> copyWith({
  String? text,
  T? value,
  Color? textColor,
}) {
  return ModernFormBottomSheetModel<T>(
    text: text ?? this.text,
    value: value ?? this.value,
    textColor: textColor ?? this.textColor,
  );
}