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
tables
as map in order to mimic the previous versions reading the data.no setter
Methods
-
appendRow(
String sheet, List row) → void -
Appends
row
iterables just post the last filled index in thesheet
-
copy(
String fromSheet, String toSheet) → void -
Copies the content of
fromSheet
intotoSheet
. -
delete(
String sheet) → void -
If
sheet
exist inexcel.tables.keys
andexcel.tables.keys.length >= 2
then it will bedeleted
. -
encode(
) → List< int> ? -
It will start setting the edited values of
sheets
into thefiles
and 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
count
of replacedsource
withtarget
-
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-Id
for the previously merged cell-Ids. -
insertColumn(
String sheet, int columnIndex) → void -
Inserts an empty
column
in sheet at position =columnIndex
. -
insertRow(
String sheet, int rowIndex) → void -
Inserts an empty row in
sheet
at position =rowIndex
. -
insertRowIterables(
String sheet, List row, int rowIndex, {int startingColumn = 0, bool overwriteMergedCells = true}) → void -
If
sheet
does not exist then it will be automatically created. -
link(
String sheet1, Sheet existingSheetObject) → void -
sheet2Object
will be linked withsheet1
. -
merge(
String sheet, CellIndex start, CellIndex end, {dynamic customValue}) → void -
Merges the cells starting from
start
toend
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeColumn(
String sheet, int columnIndex) → void -
If
sheet
exists andcolumnIndex < maxColumns
then it removes column at index =columnIndex
-
removeRow(
String sheet, int rowIndex) → void -
If
sheet
exists androwIndex < maxRows
then it removes row at index =rowIndex
-
rename(
String oldSheetName, String newSheetName) → void -
Changes the name from
oldSheetName
tonewSheetName
. -
save(
{String fileName = 'FlutterExcel.xlsx'}) → List< int> ? -
Starts Saving the file.
On Web
-
setDefaultSheet(
String sheetName) → bool -
It returns
true
if the passedsheetName
is successfully set todefault opening sheet
otherwise returnsfalse
. -
toString(
) → String -
A string representation of this object.
inherited
-
unLink(
String sheet) → void -
If
sheet
is 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
sheet
of 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
sheet
does not exist then it will be automatically created with contents ofsheetObject