Script.fromAsm constructor
Script.fromAsm(
- String asm
Constructs a script from the given script assembly string (asm
). May
return a matching sub-class for the given script.
Implementation
factory Script.fromAsm(String asm) => Script(
asm.isEmpty
? []
: asm.split(" ").map((s) => ScriptOp.fromAsm(s)).toList(),
);