asInt method

int? asInt()

Implementation

int? asInt() {
  try {
    return ByteData.view(Uint8List.fromList(_content!).buffer).getInt64(0);
  } catch (e) {
    return null;
  }
}