pages property Null safety

int pages

Implementation

int get pages =>
    size == 0 ? 0 : count! ~/ size + (count! % size == 0 ? 0 : 1);