of static method
Get the current TwConfig from the widget tree
Implementation
static TwConfig of(BuildContext context) {
final TwConfig? result = context.dependOnInheritedWidgetOfExactType<TwConfig>();
assert(result != null, 'No TwConfig found in context');
return result!;
}