canPrint property

  1. @override
bool canPrint

Returns whether the user is currently allowed to print the content.

Navigators and reading apps can use this to know if the "Print" action should be greyed out or not.

Implementation

@override
bool get canPrint => (pagesToPrintLeft ?? 1) > 0;