fromFlatbuffer static method

ImportedScene fromFlatbuffer(
  1. ByteData data
)

Implementation

static ImportedScene fromFlatbuffer(ByteData data) {
  final fb.Scene scene = fb.Scene(
      data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes));

  return ImportedScene._(scene);
}