array static method
arrays
Implementation
static CustomLayout array(Layout elementLayout, int length,
{String? property}) {
final layout = struct([
seq(elementLayout, Constant(length), property: 'values'),
]);
return CustomLayout<Map<String, dynamic>, dynamic>(
layout: layout,
decoder: (data) => data['values'],
encoder: (values) => {'values': values},
property: property,
);
}