Entity<ParentType, ChildType> constructor

const Entity<ParentType, ChildType>(
  1. String id,
  2. String name,
  3. Type type, [
  4. List<ChildType> children = const [],
])

Creates an entity.

Implementation

const Entity(this.id, this.name, this.type, [this.children = const []]);