ScaffoldOpenNode constructor

ScaffoldOpenNode({
  1. required NodeID id,
  2. NodeID? parentID,
  3. CNode? child,
  4. List<CNode>? children,
  5. String? name,
  6. String? description,
  7. double? childOrder,
  8. Map<String, dynamic>? attributes,
  9. RectProperties? rectProperties,
  10. DateTime? updatedAt,
  11. PageID? pageID,
  12. NodeID? stabilID,
  13. PageID? componentID,
  14. List<CNode>? componentChildren,
  15. bool? isLocked,
  16. List<String>? requiredAttributes,
  17. required Map<String, dynamic> appBarAttributes,
  18. required Map<String, dynamic> bottomBarAttributes,
})

Implementation

ScaffoldOpenNode({
  required final NodeID id,
  final NodeID? parentID,
  final CNode? child,
  final List<CNode>? children,
  final String? name,
  final String? description,
  final double? childOrder,
  final Map<String, dynamic>? attributes,
  final RectProperties? rectProperties,
  final DateTime? updatedAt,
  final PageID? pageID,
  final NodeID? stabilID,
  final PageID? componentID,
  final List<CNode>? componentChildren,
  final bool? isLocked,
  final List<String>? requiredAttributes,
  required this.appBarAttributes,
  required this.bottomBarAttributes,
}) : super(
        id: id,
        type: NType.scaffold,
        name: name ?? 'Scaffold',
        parentID: parentID,
        intrinsicState: const ScaffoldIntrinsicStates(),
        defaultAttributes: const ScaffoldDefaultAttributes().get,
        attributes: attributes ?? {},
        rectProperties: rectProperties ?? CNode.defaultRProperties,
        adapter: ScaffoldAdapter(),
        description: description,
        childOrder: childOrder ?? 0,
        child: child,
        children: children,
        updatedAt: updatedAt ?? DateTime.now(),
        pageID: pageID ?? '',
        stabilID: stabilID,
        componentID: componentID,
        isLocked: isLocked ?? false,
        requiredAttributes: requiredAttributes ??
            const ScaffoldDefaultAttributes()
                .requiredAttributes(NType.scaffold),
      );