flagValue property Null safety

int flagValue

Implementation

int get flagValue {
  if (flags == null || flags!.isEmpty) {
    return 0;
  }

  return flags!
      .map<int>((PdfAnnotFlags e) => 1 << e.index)
      .reduce((int a, int b) => a | b);
}