Province constructor

Province({
  1. String? name,
  2. String? slug,
  3. String? nameWithType,
  4. String? code,
  5. String? type,
  6. List<District>? districts,
})

Implementation

Province(
    {this.name,
    this.slug,
    this.nameWithType,
    this.code,
    this.type,
    List<District>? districts}): this.districts = districts ?? <District>[];