SeniorCarouselSlider class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SeniorCarouselSlider
Constructors
-
SeniorCarouselSlider({Key? key, SeniorModalDefinitions? deleteDialogDefinition, required String emptyLabel, required List<
ImageProvider< images, int initialPage = 0, dynamic onDelete(int)?, bool showDots = true, bool showPageInfo = true, SeniorCarouselSliderStyle? style, String toLabelWord = '/'})Object> > -
Creates a slider carousel component.
The images and emptyLabel parameters are required.
The deleteDialogDefinition parameter must be informed whenever onDelete is also informed and only in this
situation.
const
Properties
- deleteDialogDefinition → SeniorModalDefinitions?
-
The message dialog settings when the delete option is triggered.
final
- emptyLabel → String
-
The text displayed when there is no image to display.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
images
→ List<
ImageProvider< Object> > -
The images that will be displayed on the carousel.
final
- initialPage → int
-
The index of the image that will be displayed initially.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onDelete → (dynamic Function(int)?)
-
Callback function executed when the delete image action is triggered.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDots → bool
-
If the dots representing the index of the images will be displayed.
Default value is true.
final
- showPageInfo → bool
-
If the page information will be displayed.
Default value is true.
final
- style → SeniorCarouselSliderStyle?
-
The component's style definitions.
Allows you to configure:
SeniorCarouselSliderStyle.activeDotColor the color of the active bullet that represents the image being displayed.
SeniorCarouselSliderStyle.backgroundImageColor the background color of the images.
SeniorCarouselSliderStyle.defaultDotColor the color of the bullets that represent the images.
SeniorCarouselSliderStyle.emptyAreaColor the color of empty area.
SeniorCarouselSliderStyle.emptyBorderColor the border color of the empty state.
SeniorCarouselSliderStyle.emptyLabelColor the label color of the empty state.
SeniorCarouselSliderStyle.pageInfoColor the color os the page information.
SeniorCarouselSliderStyle.pictureBorderColor the border color of images.
SeniorCarouselSliderStyle.pictureShadowColor the shadow color of the images.
final
- toLabelWord → String
-
The word displayed between the current page and the total number of pages in the page information.
The default value is "/".
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SeniorCarouselSlider> -
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