MeshAttributeData constructor

MeshAttributeData(
  1. Float32List data, {
  2. required int components,
})

Implementation

MeshAttributeData(this.data, {required this.components}) {
  if (components < 1 || components > 4) {
    throw ArgumentError.value(
      components,
      'components',
      'must be between 1 and 4',
    );
  }
}