GFormController constructor

GFormController({
  1. GlobalKey<FormState>? key,
})

Creates a controller. Pass an existing key to reuse a form key, or omit it to have one created automatically.

Implementation

GFormController({GlobalKey<FormState>? key})
  : key = key ?? GlobalKey<FormState>();