ArgumentsUtilityMethods extension

Utility methods for Arguments typedef.

on

Methods

argumentHasValue(String name, DataType dataType) bool
Check if this argument has a value.
hasArgument(String name, DataType dataType) bool
Check if this argument exists in the list.
indexOfArgument(String name, DataType dataType) int
Returns the index of this argument if it exists, -1 else.
sortArguments() → void
Sorts the arguments alphabetically by name.
validateArguments() → void
Throws an Exception if one of the arguments is not valid.
valueOfArgument(String name, DataType dataType) → dynamic
Returns the value of this argument if it exists, null else.