StandardSystemDetector class

Default implementation of SystemEnvironmentDetector for standard Dart environments.

This detector analyzes the current Dart runtime environment using Platform APIs and creates a properly configured DefaultSystemEnvironment instance.

Detection capabilities:

  • Compilation mode analysis (debug/profile/release)
  • AOT vs JIT runtime detection
  • IDE launch detection via VM service flags
  • .dill file execution detection
  • Watch mode argument parsing

Example usage:

final detector = StandardSystemDetector();
if (detector.canDetect()) {
  final properties = detector.detect(args);
  // Use properties...
}
Implemented types

Constructors

StandardSystemDetector()
Default implementation of SystemEnvironmentDetector for standard Dart environments.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canDetect() bool
Returns true if this detector can handle the current environment
override
detect(List<String> args) Properties
Detects the current system environment and returns a configured instance
override
getPriority() int
Returns the priority of this detector (higher values take precedence)
override
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