InputUtils class

Provides utility methods used by package flutter_input:

  • convertToType converts a value to a target type (if possible)
  • readJson allows reading from a nested map using a dotted string
  • writeJson allows writing into a nested map using a dotted string
  • prettyPrintMap prints a map with one entry per line




hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

convertToType(Type type, dynamic value) → dynamic
Converts value to type. [...]
prettyPrintMap(Map map) String
Creates a string from a map by putting each entry on a separate line and prefixing it with spaces according to its depth within the map.
readJson(Map<String, dynamic> json, String path) → dynamic
Reads a value from a nested map (json). The map is identified by a slash (/) separated path. [...]
writeJson(Map<String, dynamic> json, String path, dynamic value) Map<String, dynamic>
Writes the given value at path into the given json map. If path does not yet exist in the map, it will be created.