ThemeExtractor class
Recovers the app's ThemeData statically and resolves it the way Flutter
does (ThemeData factory + Theme.of localization), producing the
MaterialTheme widgets are compiled against.
Constructors
- ThemeExtractor(ValueEvaluator eval)
Properties
-
diagnostics
→ List<
IrDiagnostic> -
final
- eval → ValueEvaluator
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromProject(
ProjectAnalysis analysis, {ThemeBrightness? brightness}) → MaterialTheme -
The theme of the project's
MaterialApp. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
themeData(
DartValue? v, {required MaterialTheme current}) → MaterialTheme -
Evaluates a
ThemeDataexpression.currentis the ambient theme, used forTheme.of(context)and as the fallback. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited