Parent constructor

const Parent({
  1. required ParentType type,
  2. required String id,
})

Main constructor for the page parent.

This constructor require the parent id and the type of parent. Possible types are defined by ParentType enum.

Implementation

const Parent({required this.type, required this.id});