readValueOfType method
Reads a value of the indicated type
from buffer
.
The codec can be extended by overriding this method, calling super for types that the extension does not handle. See the discussion at writeValue.
Implementation
@override
Object? readValueOfType(int type, ReadBuffer buffer) {
switch (type) {
case 129:
final int? value = readValue(buffer) as int?;
return value == null ? null : FillTranslateAnchor.values[value];
case 130:
return Polygon.decode(readValue(buffer)!);
case 131:
return PolygonAnnotation.decode(readValue(buffer)!);
case 132:
return PolygonAnnotationOptions.decode(readValue(buffer)!);
default:
return super.readValueOfType(type, buffer);
}
}