maybeOf static method
The test data around context, or null. Valid in initState: it
registers no dependency.
Implementation
static KoolbaseTestData? maybeOf(BuildContext context) =>
context.getElementForInheritedWidgetOfExactType<KoolbaseTestData>()?.widget
as KoolbaseTestData?;