Entrypoint class

One main() a package can be launched from.

Constructors

Entrypoint(String path, {String? name, String? description, String? flavor, Map<RunPlatform, String> flavorByPlatform = const {}, List<RunPlatform> platforms = const [], List<Knob> knobs = const []})
const

Properties

description → String?
What this entry point is, in a line.
final
flavor → String?
The --flavor this entry point is built with — dev, staging.
final
flavorByPlatform → Map<RunPlatform, String>
flavor, where it depends on the platform the launch targets.
final
hashCode → int
The hash code for this object.
no setterinherited
knobs → List<Knob>
The knobs this entry point's main takes, annotated — see Knob.
final
name → String?
What a human and an agent call it. The file's name when null.
final
path → String
Package-relative, /-separated — lib/main_staging.dart.
final
platforms → List<RunPlatform>
What this entry point can actually run on. Everything, when empty.
final
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
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited