numberFormatObject property

Format get numberFormatObject

Gets number format object.

Implementation

// ignore: library_private_types_in_public_api
Format get numberFormatObject {
  //MS Excel sets 14th index by default if the index is out of range for any the datatype.
  //So, using the same here in XlsIO.
  if (book.innerFormats.count > 14 &&
      !book.innerFormats.contains(numberFormatIndex)) {
    numberFormatIndex = 14;
  }
  return book.innerFormats[numberFormatIndex];
}