SunnyFormSubmit<T> constructor
SunnyFormSubmit<T> ({
- Key? key,
- required FutureCallback<
T> ? onPressed, - required ValueConsumer<
T> ? onCompletion, - bool? isLight,
- String? label,
- 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);