Identifier constructor

Identifier({
  1. String? id,
})

Implementation

Identifier({this.id}) {
  if (id?.isEmpty ?? true) {
    id = uuid.v1();
  }
}