Script class
Script runnable.
Constructors
-
Script({Input<
String> ? path, Input<String> ? text}) -
Creates a new Script.
pathScript file path on the host VM. To specify an interpreter, please add a#!(also known as shebang line) as the first line of the file.(For example, to execute the script using bash,#!/bin/bashshould be the first line of the file. To execute the script usingPython3,#!/usr/bin/env python3should be the first line of the file.) Otherwise, the file will by default be excuted by/bin/sh.textShell script text. To specify an interpreter, please add a#!\nat the beginning of the text.(For example, to execute the script using bash,#!/bin/bash\nshould be added. To execute the script usingPython3,#!/usr/bin/env python3\nshould be added.) Otherwise, the script will by default be excuted by/bin/sh.const -
Script.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
path
→ Input<
String> ? -
Script file path on the host VM. To specify an interpreter, please add a
#!(also known as shebang line) as the first line of the file.(For example, to execute the script using bash,#!/bin/bashshould be the first line of the file. To execute the script usingPython3,#!/usr/bin/env python3should be the first line of the file.) Otherwise, the file will by default be excuted by/bin/sh.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
text
→ Input<
String> ? -
Shell script text. To specify an interpreter, please add a
#!\nat the beginning of the text.(For example, to execute the script using bash,#!/bin/bash\nshould be added. To execute the script usingPython3,#!/usr/bin/env python3\nshould be added.) Otherwise, the script will by default be excuted by/bin/sh.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited