of static method
Implementation
static SceneDirectorState of(BuildContext context) {
final value = context.findAncestorStateOfType<SceneDirectorState>();
if (value == null) {
throw 'Should wrap Director on the top';
} else {
return value;
}
}