isNative property

bool get isNative

Whether the application's platform is the same as the host platform. ex.1 If running Flutter web on macOS, the application's platform is web while the host's platform is macOS so it returns false. ex.2 If running Flutter for iOS on an iPhone then the application's platform is iOS and the host's platform is iOS so it returns true.

Implementation

bool get isNative {
  return current == currentHost;
}