Doctor constructor Null safety

Doctor(
  1. {required String id,
  2. required String name,
  3. required String username,
  4. required String type,
  5. String? imagePath,
  6. String? lastChatMessage}
)

Implementation

Doctor({
  required String id,
  required String name,
  required String username,
  required String type,
  String? imagePath,
  this.lastChatMessage,
}) : super(
  id: id,
        name: name,
        username: username,
        type: type,
        imagePath: imagePath,
      );