fromValue static method
Implementation
static PNSessionScope fromValue(String scope) {
return values.firstWhere((element) {
if (Platform.isAndroid) {
return element.androidValue == scope;
} else if (Platform.isIOS) {
return element.iOSValue == scope;
}
return false;
}, orElse: () => PNSessionScope.sessionStart);
}