Skip to content

Commit 8200425

Browse files
committed
change generics to dynamic
1 parent 44a9628 commit 8200425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/form_builder.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ class FormBuilder extends StatefulWidget {
9999
}
100100

101101
/// A type alias for a map of form fields.
102-
typedef FormBuilderFields<T>
103-
= Map<String, FormBuilderFieldState<FormBuilderField<T>, T>>;
102+
typedef FormBuilderFields
103+
= Map<String, FormBuilderFieldState<FormBuilderField<dynamic>, dynamic>>;
104104

105105
class FormBuilderState extends State<FormBuilder> {
106106
final _formKey = GlobalKey<FormState>();

0 commit comments

Comments
 (0)