pagesToPrintLeft property

  1. @override
int? get pagesToPrintLeft
override

Number of pages allowed to be printed by the user. If null, there's no limit.

Implementation

@override
int? get pagesToPrintLeft {
  try {
    int? pagesLeft = _licenses.printsLeft(license.id);
    if (pagesLeft != null) {
      return pagesLeft;
    }
  } on Error catch (error) {
    Fimber.e("ERROR in pagesToPrintLeft", ex: error);
  }
  return null;
}