TCrudConfig<T, K> class

Constructors

TCrudConfig({Future<bool> canView(T)?, Future<bool> canEdit(T)?, Future<bool> canDelete(T)?, Future<bool> canArchive(T)?, Future<bool> canRestore(T)?, String addButtonText = 'Add New', List<TTab<int>> tabs = const [TTab(text: "Active", value: 0), TTab(text: "Archive", value: 1)], List<TCrudTableContent<T, K>> tabContents = const [], String searchPlaceholder = 'Search...', bool showActions = true, int itemsPerPage = 10, List<int> itemsPerPageOptions = const [5, 10, 15, 25, 50], List<TCrudCustomAction<T>> activeActions = const [], List<TCrudCustomAction<T>> archiveActions = const [], List<Widget> topBarActions = const [], TListInteraction<T>? interaction})
const

Properties

activeActions List<TCrudCustomAction<T>>
final
addButtonText String
final
archiveActions List<TCrudCustomAction<T>>
final
canArchive Future<bool> Function(T)?
final
canDelete Future<bool> Function(T)?
final
canEdit Future<bool> Function(T)?
final
canRestore Future<bool> Function(T)?
final
canView Future<bool> Function(T)?
final
hashCode int
The hash code for this object.
no setterinherited
interaction TListInteraction<T>?
final
itemsPerPage int
final
itemsPerPageOptions List<int>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchPlaceholder String
final
showActions bool
final
tabContents List<TCrudTableContent<T, K>>
final
tabs List<TTab<int>>
final
topBarActions List<Widget>
final

Methods

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