KModal<T> class Null safety

Constructors

KModal()

Properties

controller KListController
controller of model
read-only
getKey String?
========================================= the unique key to be found by Get (other name is tag)
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

empty({VoidCallback? retryFunction}) Widget
build an empty widget when datasource is empty. Consider to adapt retryFunction into your widget
listItem({T? data}) Widget
build an list item widget
loading() Widget
build an loading widget to show at first time enter
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
request({int page = 1}) Future<List<T>?>
start request data from internet
toString() String
A string representation of this object. [...]
inherited

Operators

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