SunnyFormSubmit<T>.popResult constructor

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

Implementation

SunnyFormSubmit.popResult(
    {String? label,
    this.minSubmitDuration,
    this.isLight,
    Key? key,
    this.onPressed})
    : onCompletion = ((context, value) {
        if (value != null) {
          Navigator.pop(context, value);
        }
      }),
      label = Text(label ?? "Save",
          style: isLight == true ? formSubmitLight : formSubmitDark),
      id = label,
      super(key: key);