getFloat32 method

double? getFloat32(
  1. int fieldId
)

Reads a float32 field, or null when absent.

Implementation

double? getFloat32(int fieldId) {
  final cursor = this.cursor();
  while (cursor.next()) {
    if (cursor.fieldId != fieldId) continue;
    _requireWire(cursor, fieldId, VxsWire.fixed32);
    return _data.getFloat32(cursor.valueOffset, Endian.little);
  }
  return null;
}