nativeValue property

String get nativeValue

Maps this enum to the string value understood by the native platform.

Kept internal so that platform details never leak into the public API.

Implementation

String get nativeValue {
  switch (this) {
    case WallpaperTarget.home:
      return 'home';
    case WallpaperTarget.lock:
      return 'lock';
    case WallpaperTarget.both:
      return 'both';
  }
}