Pay off some technical debt. (#8710)
* Rename `Device.platform` to `Device.targetPlatform` to avoid collision with the exported variable from `platform.dart`
This commit is contained in:
@@ -31,7 +31,7 @@ class MockApplicationPackageStore extends ApplicationPackageStore {
|
||||
|
||||
class MockAndroidDevice extends Mock implements AndroidDevice {
|
||||
@override
|
||||
TargetPlatform get platform => TargetPlatform.android_arm;
|
||||
TargetPlatform get targetPlatform => TargetPlatform.android_arm;
|
||||
|
||||
@override
|
||||
bool isSupported() => true;
|
||||
@@ -39,7 +39,7 @@ class MockAndroidDevice extends Mock implements AndroidDevice {
|
||||
|
||||
class MockIOSDevice extends Mock implements IOSDevice {
|
||||
@override
|
||||
TargetPlatform get platform => TargetPlatform.ios;
|
||||
TargetPlatform get targetPlatform => TargetPlatform.ios;
|
||||
|
||||
@override
|
||||
bool isSupported() => true;
|
||||
@@ -47,7 +47,7 @@ class MockIOSDevice extends Mock implements IOSDevice {
|
||||
|
||||
class MockIOSSimulator extends Mock implements IOSSimulator {
|
||||
@override
|
||||
TargetPlatform get platform => TargetPlatform.ios;
|
||||
TargetPlatform get targetPlatform => TargetPlatform.ios;
|
||||
|
||||
@override
|
||||
bool isSupported() => true;
|
||||
|
||||
Reference in New Issue
Block a user