I saw a code like below.
I understood formKey is defined as GlobalKey type, and basically what <FormState> is? is this type as well?
I can declare field like final formKey GlobalKey; without any errors, but when I use if (_formKey.currentState.validate()) later, flutter says validate() are not defined as methods and finally I'm confusing gramatically what <FormState> is, especially way of using <>?
Or Is this Generics? but I'm still confusing that i just learned that we can use Generics like as type placeholder. But this code shown below seems not like that. I'm sorry that I'm really new about class or objective programing’, and do appreciate your kindness!
class TEST extends ConsumerWidget {
final formKey GlobalKey<FormState>;
//omit