of static method

VariableScope? of(
  1. String str
)

Implementation

static VariableScope? of(String str) {
  switch (str) {
    case 'device':
      return VariableScope.device;
    case 'app':
      return VariableScope.app;
    case 'screen':
      return VariableScope.screen;
  }
}