of static method
Implementation
static StageFrame of(BuildContext context) {
var scope = context.dependOnInheritedWidgetOfExactType<StageScope>();
if (scope == null) {
throw FlutterError(
'Screen and Pointer only work inside a stage, because they draw the '
'frame a reel is being rendered for.',
);
}
return scope.frame;
}