allocate method

  1. @override
ViewStorageItem allocate(
  1. String name, {
  2. OutputType? outputType = o.OBJECT_TYPE,
  3. required List<StmtModifier> modifiers,
  4. 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,
  );
}