SeniorNotificationList class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SeniorNotificationList
Constructors
-
SeniorNotificationList({Key? key, String? actionButtonLabel, bool busyActionButton = false, bool disabledActionButton = false, bool isLoading = false, String? loadButtonLabel, required List<
SeniorNotification> notifications, dynamic onLoad()?, dynamic onNotificationTap(int)?, dynamic onTapActionButton()?, ScrollController? scrollController, SeniorNotificationListStyle? style, required String title}) -
Creates a component to display a list of notifications.
const
Properties
- actionButtonLabel → String?
-
An action button that appears after the list.
The button executes the function passed in the onTapActionButton parameter.
final
- busyActionButton → bool
-
Defines whether the action button will be in a busy state (loading).
final
- disabledActionButton → bool
-
Defines whether the action button will be disabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
Defines whether list information is being loaded.
In this state it displays a SeniorLoading.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadButtonLabel → String?
-
Button label to load more items in the list.
The button is only displayed if the value of the parameters loadButtonLabel and onLoad are different from null.
final
-
notifications
→ List<
SeniorNotification> -
The list of notifications that will be displayed.
final
- onLoad → (dynamic Function()?)
-
Callback function executed when the button to load more items in the list is pressed.
The button is only displayed if the value of the parameters loadButtonLabel and onLoad are different from null.
final
- onNotificationTap → (dynamic Function(int)?)
-
Callback function executed when notification is tapped.
Receives the selected notification index.
final
- onTapActionButton → (dynamic Function()?)
-
Callback function executed when action button is pressed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
The ScrollController used in the component's scrollbar.
final
- style → SeniorNotificationListStyle?
-
The component's style definitions.
Allows you to configure:
SeniorNotificationListStyle.notificationBodyColor the color of the notification's body content.
SeniorNotificationListStyle.notificationFooterColor the color of the notification's footer content.
SeniorNotificationListStyle.notificationTitleColor the color of the notification title.
SeniorNotificationListStyle.separatorColor the color of the notifications tab.
SeniorNotificationListStyle.titleColor the color of the notification list title.
final
- title → String
-
The title of the notification list.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SeniorNotificationList> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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