of static method
Implementation
static FormController? of(BuildContext context,
{bool listen = false, bool nullOk = false}) {
FormController getter() => Provider.of(context, listen: listen);
try {
return getter();
} catch (e) {
if (!nullOk) {
rethrow;
} else {
return null;
}
}
}