SunnyFormSubmit<T>.popResult constructor
SunnyFormSubmit<T>.popResult ({
- String? label,
- Duration? minSubmitDuration,
- bool? isLight,
- Key? key,
- 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);