ModulePlatform enum
The platforms an AutoConfigurationModule can be kept to.
The generated application lists such a module under a constant the
compiler knows (dart.library.io, dart.library.js_interop,
dart.library.ui), so the other platform's build has none of its code.
Values
- native → const ModulePlatform
-
Where
dart:ioexists: the Dart VM, an AOT executable, a Flutter app on a phone or a desktop. Not a browser. - web → const ModulePlatform
-
A browser, compiled to JavaScript or WebAssembly.
- server → const ModulePlatform
-
A server: the Dart VM or an AOT executable (
dart compile exe), wheredart:ioexists and Flutter'sdart:uidoes not. Never a Flutter app on a phone or a desktop, never a browser.For code that must not ship in an app at all, since anyone can read what an app carries: an API that needs a secret key, as the admin API of Supabase Auth with the project's service-role key. A Flutter app compiles such a module away with everything only it reaches, so its binary holds no line of that code.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ModulePlatform> - A constant List of the values in this enum, in order of their declaration.