-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support web in package:platform
- Loading branch information
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import 'platform.dart'; | ||
|
||
/// `Platform` implementation that . | ||
class LocalPlatform extends Platform { | ||
/// Creates a new [LocalPlatform]. | ||
const LocalPlatform(); | ||
|
||
@override | ||
int get numberOfProcessors => 0; | ||
|
||
@override | ||
String get pathSeparator => '/'; | ||
|
||
@override | ||
String get operatingSystem => 'TODO'; | ||
|
||
@override | ||
String get operatingSystemVersion => 'TODO'; | ||
|
||
@override | ||
String get localHostname => 'TODO'; | ||
|
||
@override | ||
Map<String, String> get environment => {}; | ||
|
||
@override | ||
String get executable => 'TODO'; | ||
|
||
@override | ||
String get resolvedExecutable => 'TODO'; | ||
|
||
@override | ||
Uri get script => Uri.base; | ||
|
||
@override | ||
List<String> get executableArguments => []; | ||
|
||
@override | ||
String? get packageConfig => 'TODO'; | ||
|
||
@override | ||
String get version => 'TODO'; | ||
|
||
@override | ||
bool get stdinSupportsAnsi => false; | ||
|
||
@override | ||
bool get stdoutSupportsAnsi => false; | ||
|
||
@override | ||
String get localeName => 'TODO'; | ||
} |