Theme class
The theme to be used by components.
Constructors
-
Theme({required String inputPrefix, required String inputSuffix, required String successPrefix, required String successSuffix, required String errorPrefix, required StyleFunction messageStyle, required StyleFunction errorStyle, required StyleFunction hintStyle, required StyleFunction valueStyle, required StyleFunction defaultStyle, required String activeItemPrefix, required String inactiveItemPrefix, required StyleFunction activeItemStyle, required StyleFunction inactiveItemStyle, required String checkedItemPrefix, required String uncheckedItemPrefix, required String pickedItemPrefix, required String unpickedItemPrefix, required bool showActiveCursor, required String progressPrefix, required String progressSuffix, required String emptyProgress, required String filledProgress, required String leadingProgress, required StyleFunction emptyProgressStyle, required StyleFunction filledProgressStyle, required StyleFunction leadingProgressStyle, required List<
String> spinners, required int spinningInterval}) -
Constructs a new Theme with all of it's properties.
const
Properties
- activeItemPrefix → String
-
final
- activeItemStyle → StyleFunction
-
final
- checkedItemPrefix → String
-
final
- defaultStyle → StyleFunction
-
final
- emptyProgress → String
-
final
- emptyProgressStyle → StyleFunction
-
final
- errorPrefix → String
-
final
- errorStyle → StyleFunction
-
final
- filledProgress → String
-
final
- filledProgressStyle → StyleFunction
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
final
- hintStyle → StyleFunction
-
final
- inactiveItemPrefix → String
-
final
- inactiveItemStyle → StyleFunction
-
final
- inputPrefix → String
-
final
- inputSuffix → String
-
final
- leadingProgress → String
-
final
- leadingProgressStyle → StyleFunction
-
final
- messageStyle → StyleFunction
-
final
- pickedItemPrefix → String
-
final
- progressPrefix → String
-
final
- progressSuffix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showActiveCursor → bool
-
final
-
spinners
→ List<
String> -
final
- spinningInterval → int
-
final
- successPrefix → String
-
final
- successSuffix → String
-
final
- uncheckedItemPrefix → String
-
final
- unpickedItemPrefix → String
-
final
- valueStyle → StyleFunction
-
final
Methods
-
copyWith(
{String? inputPrefix, String? inputSuffix, String? successPrefix, String? successSuffix, String? errorPrefix, StyleFunction? messageStyle, StyleFunction? errorStyle, StyleFunction? hintStyle, StyleFunction? valueStyle, StyleFunction? defaultStyle, String? activeItemPrefix, String? inactiveItemPrefix, StyleFunction? activeItemStyle, StyleFunction? inactiveItemStyle, String? checkedItemPrefix, String? uncheckedItemPrefix, String? pickedItemPrefix, String? unpickedItemPrefix, bool? showActiveCursor, String? progressPrefix, String? progressSuffix, String? emptyProgress, String? filledProgress, String? leadingProgress, StyleFunction? emptyProgressStyle, StyleFunction? filledProgressStyle, StyleFunction? leadingProgressStyle, List< String> ? spinners, int? spinningInterval}) → Theme - Copy current theme with new properties and create a new Theme from it.
-
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
Static Properties
- basicTheme → Theme
-
A very basic theme without colors.
final
- colorfulTheme → Theme
-
A very colorful theme.
final
- defaultTheme ↔ Theme
-
An alias to colorfulTheme.
getter/setter pair