ResultOptions class

Constructors

ResultOptions({double width = 220, double height = 50, double space = 10, Alignment alignment = Alignment.center, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10), MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween, ResultRender render = ResultRender.all, BoxDecoration boxDecoration = const BoxDecoration(color: Color(0xFFFFFFFF), borderRadius: BorderRadius.all(Radius.circular(10)), boxShadow: [BoxShadow(color: Color(0x1a9E9E9E), spreadRadius: 1, blurRadius: 10, offset: Offset(0, 1))]), BoxDecoration openBoxDecoration = const BoxDecoration(color: Color(0xFFFFFFFF), borderRadius: BorderRadius.all(Radius.circular(10)), border: Border(top: BorderSide(width: 1, color: Color(0xFF6FCC76)), bottom: BorderSide(width: 1, color: Color(0xFF6FCC76)), left: BorderSide(width: 1, color: Color(0xFF6FCC76)), right: BorderSide(width: 1, color: Color(0xFF6FCC76))), boxShadow: [BoxShadow(color: Color(0x1a9E9E9E), spreadRadius: 1, blurRadius: 10, offset: Offset(0, 1))]), BoxDecoration errorBoxDecoration = const BoxDecoration(color: Color(0xFFFFFFFF), borderRadius: BorderRadius.all(Radius.circular(10)), border: Border(top: BorderSide(width: 1, color: Color(0xFFE74C3C)), bottom: BorderSide(width: 1, color: Color(0xFFE74C3C)), left: BorderSide(width: 1, color: Color(0xFFE74C3C)), right: BorderSide(width: 1, color: Color(0xFFE74C3C))), boxShadow: [BoxShadow(color: Color(0x1a9E9E9E), spreadRadius: 1, blurRadius: 10, offset: Offset(0, 1))]), TextStyle textStyle = const TextStyle(color: Color(0xff000000), fontSize: 16, fontWeight: FontWeight.w400), TextStyle placeholderTextStyle = const TextStyle(color: Color(0xff666666), fontSize: 16, fontWeight: FontWeight.w400), Widget? icon = const SizedBox(width: 10, height: 10, child: CustomPaint(painter: DropdownArrowPainter())), String? placeholder, TextOverflow textOverflow = TextOverflow.ellipsis, bool isMarquee = false, Duration duration = const Duration(milliseconds: 300), Duration marqueeDuration = const Duration(milliseconds: 6000), Duration backDuration = const Duration(milliseconds: 800), Duration pauseDuration = const Duration(milliseconds: 800)})
const

Properties

alignment Alignment
Result alignment of (text + icon)
final
backDuration Duration
The duration of the switch animation.
final
boxDecoration BoxDecoration
Result box decoration
final
duration Duration
The duration of the switch animation.
final
errorBoxDecoration BoxDecoration
Result box decoration
final
hashCode int
The hash code for this object.
no setterinherited
height double
Result width
final
icon Widget?
Result icon
final
isMarquee bool
Result is marquee
final
mainAxisAlignment MainAxisAlignment
Result main axis alignment of (text + icon)
final
marqueeDuration Duration
The duration of the switch animation.
final
openBoxDecoration BoxDecoration
Result box decoration
final
padding EdgeInsets
Result padding
final
pauseDuration Duration
The duration of the switch animation.
final
placeholder String?
Result placeholder
final
placeholderTextStyle TextStyle
Result text style
final
render ResultRender
Result render type label, icon, all, none, reverse
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
space double
Result width
final
textOverflow TextOverflow
Result text is overflow
final
textStyle TextStyle
Result text style
final
width double
Result width
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited