type property

String get type

The type of reference.

You can use this in a switch to handle the various types (see the static expectedType getters), or you can use isPrompt and isResource to determine the type and then do the cast.

Implementation

String get type => _value['type'] as String;