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];
}