Dart API Referencedart:coreOptions

Options abstract class

The Options object allows accessing the arguments which have been passed to the current isolate.

abstract class Options {
  /**
   * A newly constructed Options object contains the arguments exactly as they
   * have been passed to the isolate.
   */
  factory Options() => new RuntimeOptions();

  /**
   * Returns a list of arguments that have been passed to this isolate. Any
   * modifications to the list will be contained to the options object owning
   * this list.
   *
   * If the execution environment does not support [arguments] an empty list
   * is returned.
   */
  List<String> get arguments;

  /**
   * Returns the path of the executable used to run the script in this
   * isolate.
   *
   * If the execution environment does not support [executable] an empty
   * string is returned.
   */
  String get executable;

  /**
   * Returns the path of the script being run in this isolate.
   *
   * If the executable environment does not support [script] an empty
   * string is returned.
   */
  String get script;
}

Subclasses

RuntimeOptions

Constructors

factory Options() #

A newly constructed Options object contains the arguments exactly as they have been passed to the isolate.

factory Options() => new RuntimeOptions();

Properties

final List<String> arguments #

Returns a list of arguments that have been passed to this isolate. Any modifications to the list will be contained to the options object owning this list.

If the execution environment does not support arguments an empty list is returned.

List<String> get arguments;

final String executable #

Returns the path of the executable used to run the script in this isolate.

If the execution environment does not support executable an empty string is returned.

String get executable;

final String script #

Returns the path of the script being run in this isolate.

If the executable environment does not support script an empty string is returned.

String get script;