SunnyFormSubmit<T> constructor

SunnyFormSubmit<T>({
  1. Key? key,
  2. required FutureCallback<T>? onPressed,
  3. required ValueConsumer<T>? onCompletion,
  4. bool? isLight,
  5. String? label,
  6. Duration? minSubmitDuration,
})

Implementation

SunnyFormSubmit({
  Key? key,
  required this.onPressed,
  required this.onCompletion,
  this.isLight,
//    this.color,
  String? label,
  this.minSubmitDuration,
})  : id = label,
      label = Text(label ?? "Save",
          style: isLight == true ? formSubmitLight : formSubmitDark),
      super(key: key);