asString method

String asString([
  1. String? defaultValue
])

If object is string then return it otherwise throw FormatException

Implementation

String asString([String? defaultValue]) {
  return _getValue<String>(defaultValue);
}