resolveByPlatform static method

DeviceInfoService resolveByPlatform()

Implementation

static DeviceInfoService resolveByPlatform() {
  if (Platform.isAndroid) {
    return AndroidDeviceInfoServiceImpl();
  } else if (Platform.isIOS) {
    return IOSDeviceInfoServiceImpl();
  } else {
    return MockDeviceInfoServiceImpl();
  }
}