Model constructor

const Model({
  1. required String id,
  2. String? userId,
  3. Map<String, dynamic> data = const {},
})

Creates a new model.

Implementation

const Model({required this.id, this.userId, this.data = const {}});