Worker constructor Null safety

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

Implementation

Worker({
  required String id,
  required String username,
  required String name,
  required String type,
  String? imagePath,
}) : super(
  id: id,
        name: name,
        username: username,
        type: type,
        imagePath: imagePath,
      );