toScope method
Implementation
Scope toScope() {
switch (this) {
case 'task':
return Scope.task;
case 'shared':
return Scope.shared;
}
throw Exception('$this is not known in enum Scope');
}
Scope toScope() {
switch (this) {
case 'task':
return Scope.task;
case 'shared':
return Scope.shared;
}
throw Exception('$this is not known in enum Scope');
}