AlphabetScrollView class

Inheritance

Constructors

AlphabetScrollView({Key? key, required List<AlphaModel> list, LetterAlignment alignment = LetterAlignment.right, bool isAlphabetsFiltered = true, Widget overlayWidget(String)?, required TextStyle selectedTextStyle, required TextStyle unselectedTextStyle, double itemExtent = 40, required Widget itemBuilder(BuildContext, int, String)})

Properties

alignment LetterAlignment
Alignment for the Alphabet List can be aligned on either left/right side of the screen
final
hashCode int
The hash code for this object.
no setterinherited
isAlphabetsFiltered bool
defaults to true if specified as false all alphabets will be shown regardless of whether the item in the list exists starting with that alphabet.
final
itemBuilder Widget Function(BuildContext, int, String)
The itemBuilder must return a non-null widget and the third paramter id specifies the string mapped to this widget from the [list] passed.
getter/setter pair
itemExtent double
itemExtent specifies the max height of the widget returned by itemBuilder if not specified defaults to 40.0
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
list List<AlphaModel>
List of Items should be non Empty and you must map your
final
overlayWidget → (Widget Function(String)?)
Widget to show beside the selected alphabet if not specified it will be hidden.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedTextStyle TextStyle
Text styling for the selected alphabet by which we can customize the font color, weight, size etc.
final
unselectedTextStyle TextStyle
Text styling for the unselected alphabet by which we can customize the font color, weight, size etc.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _AlphabetScrollViewState
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