CustomPhone constructor

const CustomPhone({
  1. Key? key,
  2. FutureOr<String?> valid(
    1. PhoneNumber?
    )?,
  3. required String? text,
  4. void onChange(
    1. PhoneNumber
    )?,
  5. Widget? prefixIcon,
})

Implementation

const CustomPhone({
  Key? key,
  this.valid,
  required this.text,
  this.onChange,
   this.prefixIcon,
}) : super(key: key);