BrnSingleSelectCityPage class

简述:BrnSingleSelectCityPage是用于城市选择的单选页面, 功能:多可以自定制导航栏文案,搜索文案信息,定位信息,右侧可快速滑动查看城市

Inheritance
Available Extensions

Constructors

BrnSingleSelectCityPage({String? appBarTitle = '', String? hotCityTitle = '', required List<BrnSelectCityModel> hotCityList, List<BrnSelectCityModel>? cityList, bool showSearchBar = true, String locationText = '', ValueChanged<BrnSelectCityModel>? onValueChanged, Image? emptyImage})

Properties

appBarTitle String?
页面标题,默认空
final
cityList List<BrnSelectCityModel>?
城市列表
final
emptyImage Image?
空页面中间展位图展示
final
hashCode int
The hash code for this object.
no setterinherited
hotCityList List<BrnSelectCityModel>
热门推荐城市列表
final
hotCityTitle String?
热门推荐标题,默认空
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locationText String
当前城市定位文案展示
final
onValueChanged ValueChanged<BrnSelectCityModel>?
单选项 点击的回调
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showSearchBar bool
是否展示searchBar,默认 true
final

Methods

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