Dir
src
@Js
@Serializable { simple=true }
enum class Dir : Enum
Direction enums: up, down, left, right
src
const static Dir down := ...
src
static new fromStr(Str name, Bool checked := true)
Return the Dir instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.
src
const static Dir left := ...
src
const static Dir right := ...
src
const static Dir up := ...
src
const static Dir[] vals := Dir[Dir.up,Dir.down,Dir.left,Dir.right]
List of Dir values indexed by ordinal