of static method
Implementation
static EncustodyContext of(BuildContext ctx) {
_context = ctx;
final arg0 = ctx.dependOnInheritedWidgetOfExactType<EncustodyContext>()!;
/**
* Check if app is wrapped with EncustodyContext
* */
validateEncustodyContext(ctx);
/**
* Check if EncustodyConfig is valid
* */
validateEncustodyConfig(arg0.config);
return arg0;
}