Excel class
Decode a excel file.
Constructors
- Excel.createExcel()
-
factory
- Excel.decodeBuffer(InputStream input)
-
factory
-
Excel.decodeBytes(List<
int> data) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- parser ↔ Parser
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sheets
→ Map<
String, Sheet> -
Returns the
Map<String, Sheet>no setter -
tables
→ Map<
String, Sheet> -
It will return
tablesas map in order to mimic the previous versions reading the data.no setter
Methods
-
appendRow(
String sheet, List row) → void -
Appends
rowiterables just post the last filled index in thesheet -
copy(
String fromSheet, String toSheet) → void -
Copies the content of
fromSheetintotoSheet. -
delete(
String sheet) → void -
If
sheetexist inexcel.tables.keysandexcel.tables.keys.length >= 2then it will bedeleted. -
encode(
) → List< int> ? -
It will start setting the edited values of
sheetsinto thefilesand thenexports the file. -
findAndReplace(
String sheet, dynamic source, dynamic target, {int first = -1, int startingRow = -1, int endingRow = -1, int startingColumn = -1, int endingColumn = -1}) → int -
Returns the
countof replacedsourcewithtarget -
getDefaultSheet(
) → String? -
returns the name of the
defaultSheet(the sheet which opens firstly when xlsx file is opened inexcel based software). -
getMergedCells(
String sheet) → List< String> -
returns an Iterable of
cell-Idfor the previously merged cell-Ids. -
insertColumn(
String sheet, int columnIndex) → void -
Inserts an empty
columnin sheet at position =columnIndex. -
insertRow(
String sheet, int rowIndex) → void -
Inserts an empty row in
sheetat position =rowIndex. -
insertRowIterables(
String sheet, List row, int rowIndex, {int startingColumn = 0, bool overwriteMergedCells = true}) → void -
If
sheetdoes not exist then it will be automatically created. -
link(
String sheet1, Sheet existingSheetObject) → void -
sheet2Objectwill be linked withsheet1. -
merge(
String sheet, CellIndex start, CellIndex end, {dynamic customValue}) → void -
Merges the cells starting from
starttoend. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeColumn(
String sheet, int columnIndex) → void -
If
sheetexists andcolumnIndex < maxColumnsthen it removes column at index =columnIndex -
removeRow(
String sheet, int rowIndex) → void -
If
sheetexists androwIndex < maxRowsthen it removes row at index =rowIndex -
rename(
String oldSheetName, String newSheetName) → void -
Changes the name from
oldSheetNametonewSheetName. -
save(
{String fileName = 'FlutterExcel.xlsx'}) → List< int> ? -
Starts Saving the file.
On Web -
setDefaultSheet(
String sheetName) → bool -
It returns
trueif the passedsheetNameis successfully set todefault opening sheetotherwise returnsfalse. -
toString(
) → String -
A string representation of this object.
inherited
-
unLink(
String sheet) → void -
If
sheetis linked with any other sheet's object then it's link will be broke -
unMerge(
String sheet, String unmergeCells) → void - unMerge the merged cells.
-
updateCell(
String sheet, CellIndex cellIndex, dynamic value, {CellStyle? cellStyle}) → void -
Updates the contents of
sheetof thecellIndex: CellIndex.indexByColumnRow(0, 0);where indexing starts from 0
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String sheet) → Sheet -
It will return the SheetObject of
sheet. -
operator []=(
String sheet, Sheet sheetObject) → void -
If
sheetdoes not exist then it will be automatically created with contents ofsheetObject