of static method
Implementation
static XMaterialApp of(BuildContext? context) {
context ??= Zap.context;
final ancestor = context.findAncestorWidgetOfExactType<XMaterialApp>();
assert(ancestor != null, 'No XMaterialApp found in the widget tree');
return ancestor!;
}