QuizConfig class

Configuration class for the quiz widget appearance and behavior

Constructors

QuizConfig.new({EdgeInsetsGeometry padding = const EdgeInsets.all(20), double cornerRadius = 12, Color backgroundColor = const Color(0xFF1E3A8A), Color textColor = const Color(0xFFFFFFFF), Color questionTextColor = const Color(0xFFFFFFFF), double questionFontSize = 20, double optionFontSize = 18, bool showProgressIndicator = true, bool allowBackwardNavigation = true, bool requireAnswerToProgress = true, Duration animationDuration = const Duration(milliseconds: 300), bool enableAutoNavigation = true, Duration autoNavigationDelay = const Duration(milliseconds: 800), bool useGradientBackground = true, List<Color>? gradientColors})
const

Properties

allowBackwardNavigation bool
final
animationDuration Duration
final
autoNavigationDelay Duration
final
backgroundColor Color
final
cornerRadius double
final
enableAutoNavigation bool
final
gradientColors List<Color>?
final
hashCode int
The hash code for this object.
no setterinherited
optionFontSize double
final
padding EdgeInsetsGeometry
final
questionFontSize double
final
questionTextColor Color
final
requireAnswerToProgress bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showProgressIndicator bool
final
textColor Color
final
useGradientBackground bool
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