build method

ByteData? build(
  1. Object? object
)

Implementation

ByteData? build(Object? object) {
  if (object == null) {
    return null;
  }

  ByteData? resultData;
  try {
    var _builder = _Builder(object);
    resultData = _builder._build();
    _builder.release();
  } catch (e) {
    resultData = null;
    LogUtils.e("Voltron_buffer", "error building buffer $e");
  }

  return resultData;
}