create

TestNode create({

  1. required String type,
  2. required Map<String, Object?> props,
  3. required List<TestNode> children,
})

Creates a TestNode for testing purposes.

Implementation

// ignore: prefer_constructors_over_static_methods
static TestNode create({
  required String type,
  required Map<String, Object?> props,
  required List<TestNode> children,
}) => TestNode._(type: type, props: props, children: children);