FormPageModel class

Represents a page model for the form.

Constructors

FormPageModel({String? title, required Widget body, String? textButton, VoidCallback? onPressed, ButtonStyle? buttonStyle, GlobalKey<FormState>? formKey, bool? isButtonEnabled})
Creates a new instance of FormPageModel.

Properties

body Widget
The form widget for this page.
final
buttonStyle ButtonStyle?
The style applied to the button.
final
formKey GlobalKey<FormState>?
The key for the form.
final
hashCode int
The hash code for this object.
no setterinherited
isButtonEnabled bool?
The value indicating whether the button is enabled.
final
onPressed VoidCallback?
The callback function executed when the button is pressed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textButton String?
The text displayed on the button for this page.
final
title String?
The title of the page.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited