EmptyView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- EmptyView
Constructors
- EmptyView({Key? key, required Widget widget, bool? loading = false, bool? empty = false, bool? error = false, Widget? emptyImage, Widget? errorImage, Widget? loadingWidget, Widget? emptyTitle, ButtonStyle? buttonStyle, ButtonStyle? emptyButtonStyle, Widget? emptyButtonChild, VoidCallback? emptyPressed, Widget? emptyContent, Widget? errorTitle, Widget? errorContent, ButtonStyle? errorButtonStyle, Widget? errorButtonChild, VoidCallback? errorPressed, Widget? loadingTitle, Color? color, double? imageSize = 200.0, double? loadingSize})
-
const
Properties
-
final
- color → Color?
-
final
- empty → bool?
-
final
- emptyButtonChild → Widget?
-
final
- emptyButtonStyle → ButtonStyle?
-
final
- emptyContent → Widget?
-
final
- emptyImage → Widget?
-
final
- emptyPressed → VoidCallback?
-
final
- emptyTitle → Widget?
-
final
- error → bool?
-
final
- errorButtonChild → Widget?
-
final
- errorButtonStyle → ButtonStyle?
-
final
- errorContent → Widget?
-
final
- errorImage → Widget?
-
final
- errorPressed → VoidCallback?
-
final
- errorTitle → Widget?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageSize → double?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loading → bool?
-
final
- loadingSize → double?
-
final
- loadingTitle → Widget?
-
final
- loadingWidget → Widget?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widget → Widget
-
final
Methods
-
addEmptyChildren(
BuildContext context) → List< Widget> - 添加空子组件列表
-
addErrorChildren(
BuildContext context) → List< Widget> - 添加错误子组件列表
-
addLoadingChildren(
BuildContext context) → List< Widget> - 添加加载子组件列表
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
buildEmpty(
BuildContext context) → Widget -
buildError(
BuildContext context) → Widget -
buildLoading(
BuildContext context) → Widget -
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited