ArgsSimple class

Available Extensions

Constructors

ArgsSimple()
ArgsSimple.fromEncodedJson(String encodedJson)
factory
ArgsSimple.fromJson(Object json)
factory
ArgsSimple.parse([List<String> args = const <String>[]])

Properties

arguments List<String>
no setter
flags Set<String>
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
isNotEmpty bool
no setter
options Map<String, Object>
no setter
properties Map<String, Object>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addArgument(String value) → void
addFlag(String key) → void
argument<T>(int index, [T? def, TypeElementParser? parser]) → T?
argumentAsBool(int index, [bool? def]) bool?
argumentAsDouble(int index, [double? def]) double?
argumentAsInt(int index, [int? def]) int?
argumentAsList(int index, [List? def]) List?
argumentAsMap(int index, [Map? def]) Map?
argumentAsSet(int index, [Set? def]) Set?
argumentAsString(int index, [String? def]) String?
argumentMatches(int index, Pattern pattern) bool
flag<T>(String key) bool
flagOr<T>(String key, bool? def) bool?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
option<T>(String key, [T? def, TypeElementParser? parser]) → T?
optionAsBool(String key, [bool? def]) bool?
optionAsDouble(String key, [double? def]) double?
optionAsInt(String key, [int? def]) int?
optionAsList(String key, [List? def]) List?
optionAsMap(String key, [Map? def]) Map?
optionAsSet(String key, [Set? def]) Set?
optionAsString(String key, [String? def]) String?
optionMatches(String key, Pattern pattern) bool
property<T>(String key, [T? def, TypeElementParser? parser]) → T?
propertyAsBool(String key, [bool? def]) bool?
propertyAsDouble(String key, [double? def]) double?
propertyAsInt(String key, [int? def]) int?
propertyAsList(String key, [List? def]) List?
propertyAsMap(String key, [Map? def]) Map?
propertyAsSet(String key, [Set? def]) Set?
propertyAsString(String key, [String? def]) String?
propertyMatches(String key, Pattern pattern) bool
putOption(String key, Object value) → void
putProperty(String key, Object value) → void
toJson() Map<String, Object>
toList() List<String>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

normalizeKey(String key) String