compareTo method

  1. @override
int compareTo(
  1. ProjetLoiFromJson other
)
override

Sorting rules

Implementation

@override
int compareTo(ProjetLoiFromJson other) {
  return (this.dateDepot ?? DateTime.now())
      .compareTo((other.dateDepot ?? DateTime.now()));
}