CellExtension constructor

const CellExtension({
  1. Symbol? name,
  2. Symbol? mutableName,
  3. bool mutable = false,
  4. bool nullable = false,
})

Annotate a class to generate an extension on ValueCell for the class's properties.

If mutable is true an extension on MutableCell is also generated.

If nullable is true extensions on the nullable type of the annotated class are generated. This only affects the extension on ValueCell and not MutableCell.

The name of the generated ValueCell extension is name and the name of the MutableCell extension, if one is generated, is mutableName. If these are null the name of the ValueCell extension is the name of the annotated class followed by CellExtension and the name of the MutableCell extension is the name of the class followed by MutableCellExtension.

Implementation

const CellExtension({
  this.name,
  this.mutableName,
  this.mutable = false,
  this.nullable = false
});