Skip to content

Commit

Permalink
Merge pull request #9 from PlugFox/feature/null_safety
Browse files Browse the repository at this point in the history
Feature/null safety
  • Loading branch information
PlugFox authored Feb 18, 2021
2 parents 51fe1f8 + 4df5c32 commit 89f5b92
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 3.0.0-nullsafety.0 - 2021-02-19
## 3.0.0-nullsafety.1 - 2021-02-19
### Changed
- Non nullable ready

Expand Down
10 changes: 5 additions & 5 deletions lib/src/platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Platform extends ExtendedHostPlatform with PlatformMethods {
int get numberOfProcessors => _hostPlatform.numberOfProcessors;

@override
late final bool isOperatingSystemKnown;
final bool isOperatingSystemKnown;

@override
bool get isWeb => _hostPlatform.type == HostPlatformType.web;
Expand All @@ -77,16 +77,16 @@ class Platform extends ExtendedHostPlatform with PlatformMethods {
bool get isIO => _hostPlatform.type == HostPlatformType.io;

@override
late final bool isMobile;
final bool isMobile;

@override
late final bool isDesktop;
final bool isDesktop;

@override
late final bool isMaterial;
final bool isMaterial;

@override
late final bool isCupertino;
final bool isCupertino;

@override
bool get isAndroid => operatingSystem == OperatingSystem.android;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: platform_info
description: >
Contains info about current platform
such as Build mode and Operating system
version: 3.0.0-nullsafety.0
version: 3.0.0-nullsafety.1
repository: https://github.com/PlugFox/platform_info/tree/master
issue_tracker: https://github.com/PlugFox/platform_info/issues
homepage: https://github.com/PlugFox/platform_info
Expand Down

0 comments on commit 89f5b92

Please sign in to comment.