getPlatform method

Future<GlyphCommon?> getPlatform()

Method to get the phone model.

Implementation

Future<GlyphCommon?> getPlatform() async {
  final result = await GlyphInterfaceSdkPlatform.instance.getPlatform();
  return switch (result) {
    '20111' => GlyphCommon.phone1,
    '22111' => GlyphCommon.phone2,
    '23111' => GlyphCommon.phone2a,
    _ => null,
  };
}