From f0efec30a3f21b4fbcf251cd2628fc786150bacf Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 25 Feb 2021 15:16:41 +0100 Subject: [PATCH] review fix --- .../platform_detector/platform_detector.dart | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/stream_chat/lib/src/platform_detector/platform_detector.dart b/packages/stream_chat/lib/src/platform_detector/platform_detector.dart index c3cf9f74..8f601501 100644 --- a/packages/stream_chat/lib/src/platform_detector/platform_detector.dart +++ b/packages/stream_chat/lib/src/platform_detector/platform_detector.dart @@ -14,16 +14,16 @@ enum PlatformType { class CurrentPlatform { CurrentPlatform._(); - static bool get isAndroid => currentPlatform == PlatformType.Android; - static bool get isIos => currentPlatform == PlatformType.Ios; - static bool get isWeb => currentPlatform == PlatformType.Web; - static bool get isMacOS => currentPlatform == PlatformType.MacOS; - static bool get isWindows => currentPlatform == PlatformType.Windows; - static bool get isLinux => currentPlatform == PlatformType.Linux; - static bool get isFuchsia => currentPlatform == PlatformType.Fuchsia; + static bool get isAndroid => type == PlatformType.Android; + static bool get isIos => type == PlatformType.Ios; + static bool get isWeb => type == PlatformType.Web; + static bool get isMacOS => type == PlatformType.MacOS; + static bool get isWindows => type == PlatformType.Windows; + static bool get isLinux => type == PlatformType.Linux; + static bool get isFuchsia => type == PlatformType.Fuchsia; static String get name { - switch (currentPlatform) { + switch (type) { case PlatformType.Android: return 'android'; case PlatformType.Ios: @@ -43,5 +43,5 @@ class CurrentPlatform { } } - PlatformType get type => currentPlatform; + static PlatformType get type => currentPlatform; }