Cast constructor

Cast({
  1. required int id,
  2. String? creditId,
  3. Gender? gender,
  4. String? name,
  5. String? profilePath,
  6. int? castId,
  7. String? character,
  8. int? order,
})

Implementation

Cast({
  required int id,
  String? creditId,
  Gender? gender,
  String? name,
  String? profilePath,
  int? castId,
  this.character,
  int? order,
})  : castId = castId ?? 0,
      order = order ?? 0,
      super(
        creditId: creditId,
        gender: gender,
        id: id,
        name: name,
        profilePath: profilePath,
      );