FluentNodeDefinition<T extends FNode> constructor

const FluentNodeDefinition<T extends FNode>({
  1. required String type,
  2. required Type nodeClass,
  3. required FluentNodeDecoder decode,
  4. required FluentNodeFactory create,
  5. required FluentNodeWidgetBuilder buildWidget,
  6. List<FNode> children(
    1. T node
    ) = _noChildren,
  7. List<FNode>? mutableChildren(
    1. T node
    ) = _noMutableChildren,
  8. bool inline = false,
  9. bool atomic = false,
  10. Map<String, Object? Function(T node)> formatProjections = const {},
})

Implementation

const FluentNodeDefinition({
  required this.type,
  required this.nodeClass,
  required this.decode,
  required this.create,
  required this.buildWidget,
  this.children = _noChildren,
  this.mutableChildren = _noMutableChildren,
  this.inline = false,
  this.atomic = false,
  this.formatProjections = const {},
});