pageIndex property

int? get pageIndex

Returns the page index this bookmark points to.

Returns null if the bookmark doesn't have a valid GoTo action.

Implementation

int? get pageIndex {
  if (actionJson == null) return null;
  try {
    final json = jsonDecode(actionJson!);
    if (json['type'] == 'goTo') {
      return json['pageIndex'] as int?;
    }
  } catch (_) {}
  return null;
}