DictionaryTermPage class
Returns the widget for a list of DictionaryEntry making up a term.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ConsumerStatefulWidget
- ConsumerWidget
- DictionaryTermPage
Constructors
-
DictionaryTermPage({required DictionaryHeading heading, required dynamic onSearch(String), required dynamic onStash(String), required Map<
Dictionary, ExpandableController> expandableControllers, required Map<String, bool> dictionaryNamesByHidden, required Map<String, int> dictionaryNamesByOrder, required AnkiMapping lastSelectedMapping, Color? cardColor, double opacity = 1, Key? key}) -
Create the widget for a dictionary word.
const
Properties
- cardColor → Color?
-
Override color for card background color.
final
-
dictionaryNamesByHidden
→ Map<
String, bool> -
Lists whether a dictionary is hidden.
final
-
dictionaryNamesByOrder
→ Map<
String, int> -
Lists the order of dictionaries.
final
-
expandableControllers
→ Map<
Dictionary, ExpandableController> -
Controls expandables by dictionary name.
final
-
Optional footer foor use in DictionaryHistoryPage.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- heading → DictionaryHeading
-
The result made from a dictionary database search.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lastSelectedMapping → AnkiMapping
-
Last selected mapping for optimisation purposes. Not including this
before caused rendering jank as database queries were performed multiple
times for getting this value.
final
- onSearch → dynamic Function(String)
-
Action to be done upon selecting the search option.
final
-
Action to be done upon selecting the share option.
final
- onStash → dynamic Function(String)
-
Action to be done upon selecting the stash option.
final
- opacity → double
-
Opacity for entries.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
build(
BuildContext context, WidgetRef ref) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → ConsumerStatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ConsumerState -
Creates the mutable state for this widget at a given location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited