toValue method

String toValue()

Convert enum to string for method channel serialization.

Implementation

String toValue() {
  switch (this) {
    case ScreenshotMode.screen:
      return 'screen';
    case ScreenshotMode.region:
      return 'region';
  }
}