CrudViewSource<T> class

Constructors

CrudViewSource({required List<String> columns, required double rowHeight, required int pageLimit, required T emptyEntityFactory(), required List<Widget> createRows(T data, int index), List<FormSection> createForm(T data)?, required Future<List<T>> onPageChange(Pagination pagination), CrudActionListener? crudActionListener})

Properties

columns List<String>
columns of the table, provide name of the column as a string array
getter/setter pair
createForm ↔ (List<FormSection> Function(T data)?)
when click a row of table, form will create according, here you have to provide the form fields crate function (check example for more details)
getter/setter pair
createRows List<Widget> Function(T data, int index)
function which will crate rows of the table (check example for more details)
getter/setter pair
crudActionListener CrudActionListener?
form crud actions listener (add, delete, update)
getter/setter pair
emptyEntityFactory → T Function()
provide an empty Object which you are use with this CRUD UI, which we get back when click on the submit button of the form
final
hashCode int
The hash code for this object.
no setterinherited
onPageChange Future<List<T>> Function(Pagination pagination)
when scrolling the table you will notify with the result of pagination object
getter/setter pair
pageLimit int
page limit when lazy loading
getter/setter pair
rowHeight double
row height of the table
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getEmptyEntity() → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited