dvStudioComponentInstance function

DVPageNode dvStudioComponentInstance(
  1. String name, {
  2. Map<String, Object?> props = const <String, Object?>{},
})

A use of the component name, with the props it sets.

Implementation

DVPageNode dvStudioComponentInstance(
  String name, {
  Map<String, Object?> props = const <String, Object?>{},
}) =>
    DVPageNode(
      type: dvStudioComponentType,
      properties: <String, Object?>{
        'component': name,
        'props': <String, Object?>{...props},
      },
    );