toValue method
Convert enum to string for method channel serialization.
Implementation
String toValue() {
switch (this) {
case ScreenshotMode.screen:
return 'screen';
case ScreenshotMode.region:
return 'region';
}
}
Convert enum to string for method channel serialization.
String toValue() {
switch (this) {
case ScreenshotMode.screen:
return 'screen';
case ScreenshotMode.region:
return 'region';
}
}