Option class

Constructors

Option({int? defaultRating, int maxRating = 10, String defaultReview = "", String skipButtonText = "Skip", String submitButtonText = "Submit", String reviewFieldHint = "Tell us here", String ratringsBottomText2 = "Yes, Definitely", String ratringsBottomText1 = "Not at all", Alignment headerTextAlignment = Alignment.center, String reviewFieldHeader = "We would love to improve on your suggestion.", String ratingHeader = "How likely are you to rate this app?", bool isDismissible = true, bool hideSuggestionField = false, bool hideRatingBottomText = false, ButtonStyle? skipButtonStyle, ButtonStyle? submitButtonStyle, TextStyle? submitButtonTextStyle, TextStyle? ratingHeaderTextStyle, TextStyle? ratingbottomTextStyle, TextStyle? reviewHeaderTextStyle, TextStyle? reviewfieldTextStyle, TextStyle? reviewFieldHintTextStyle, Color? backgroundColor, ShapeBorder? shape, RatingButtonThemeData? ratingButtonTheme})
const

Properties

backgroundColor Color?
Set the backgroundColor of form
final
defaultRating int?
Set initial rating in form
final
defaultReview String
Set initial review in form
final
hashCode int
The hash code for this object.
no setterinherited
headerTextAlignment Alignment
Set alignment of header text
final
hideRatingBottomText bool
hide texts displ below ratings
final
hideSuggestionField bool
Hide review field
final
isDismissible bool
The isDismissible parameter specifies whether the form will be dismissed when user taps on the scrim
final
maxRating int
Maximum rating which has to be displayed
final
ratingbottomTextStyle TextStyle?
Set text style for rating bottom hint text
final
ratingButtonTheme RatingButtonThemeData?
Customise Rating button
final
ratingHeader String
Set rating header text
final
ratingHeaderTextStyle TextStyle?
Set text style for rating header
final
ratringsBottomText1 String
Set text for bad rating hint
final
ratringsBottomText2 String
Set text for good rating hint
final
reviewFieldHeader String
Set text for review header
final
reviewFieldHint String
Set text review field hint
final
reviewFieldHintTextStyle TextStyle?
Set text style for review field hint
final
reviewfieldTextStyle TextStyle?
Set text style for review field
final
reviewHeaderTextStyle TextStyle?
Set text style for review field header
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder?
shape defines the shape of the form
final
skipButtonStyle ButtonStyle?
Set skip button style
final
skipButtonText String
Set text for skip button
final
submitButtonStyle ButtonStyle?
Set submit button style
final
submitButtonText String
Set text for submit button
final
submitButtonTextStyle TextStyle?
Set text style for submit button
final

Methods

copyWith({bool? isDismissible, int? defaultRating, String? defaultReview, bool? hideSuggestionField, int? maxRating, String? ratingHeader, Alignment? headerTextAlignment, bool? hideRatingBottomText, String? ratringsBottomText1, String? ratringsBottomText2, String? reviewFieldHint, String? reviewFieldHeader, String? submitButtonText, String? skipButtonText, ButtonStyle? skipButtonStyle, ButtonStyle? submitButtonStyle, TextStyle? submitButtonTextStyle, TextStyle? ratingHeaderTextStyle, TextStyle? ratingbottomTextStyle, TextStyle? reviewHeaderTextStyle, TextStyle? reviewFieldHintTextStyle, TextStyle? reviewfieldTextStyle, Color? backgroundColor, ShapeBorder? shape}) Option
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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