Skip to content

Commit af77749

Browse files
committed
add FormBuilderFields type alias
1 parent c964ef1 commit af77749

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/form_builder.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ class FormBuilder extends StatefulWidget {
9898
FormBuilderState createState() => FormBuilderState();
9999
}
100100

101+
/// A type alias for a map of form fields.
102+
typedef FormBuilderFields<T>
103+
= Map<String, FormBuilderFieldState<FormBuilderField<T>, T>>;
104+
101105
class FormBuilderState extends State<FormBuilder> {
102106
final _formKey = GlobalKey<FormState>();
103107

0 commit comments

Comments
 (0)