decodeString method

  1. @override
String decodeString()
override

Decodes the data as a string value.

Implementation

@override
String decodeString() {
  try {
    return _value as String;
  } on TypeError {
    throw CodableException.unexpectedType(expected: 'String', actual: '${_value.runtimeType}', data: _value);
  }
}