open:platformtype

PlatformType

enum PlatformType {
  android('android', 'Android'),
  ios('ios', 'iOS'),
  web('web', 'Web');
 
  const PlatformType(this.code, this.name);
  final String code;
  final String name;
 
  factory PlatformType.getByCode(String code) {
    return PlatformType.values.firstWhere((value) => value.code == code, orElse: () => PlatformType.web);
  }
}

  • open/platformtype.txt
  • 마지막으로 수정됨: 2023/04/17 10:04
  • 저자 MORO