@override Future<int> pageCount() { return methodChannel .invokeMethod<int>("pageCount") .then<int>((int? value) => value ?? 0); }