allocate method
ViewStorageItem
allocate(
- String name, {
- OutputType? outputType = o.OBJECT_TYPE,
- required List<
StmtModifier> modifiers, - Expression? initializer,
override
Implementation
@override
ViewStorageItem allocate(
String name, {
o.OutputType? outputType = o.OBJECT_TYPE,
required List<o.StmtModifier> modifiers,
o.Expression? initializer,
}) {
fields.add(
o.ClassField(
name,
outputType: outputType,
modifiers: modifiers,
initializer: initializer,
),
);
return ViewStorageItem(
name,
outputType: outputType,
modifiers: modifiers,
initializer: initializer,
);
}