SuggestionsPage class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SuggestionsPage
Constructors
-
SuggestionsPage({required String userId, required SuggestionsDataSource suggestionsDataSource, required SuggestionsTheme theme, required OnGetUserById onGetUserById, AdminSettings? adminSettings, bool isAdmin = false, OnSaveToGalleryCallback? onSaveToGallery, OnUploadMultiplePhotosCallback? onUploadMultiplePhotos, String? appBarTitle, Map<
String, String> ? imageHeaders, String? locale, SortType sortType = SortType.upvotes, Key? key}) -
const
Properties
- adminSettings → AdminSettings?
-
Administrator account settings that will be used instead of the user
account if isAdmin ==
true
.final - appBarTitle → String?
-
AppBar title that will be displayed on the SuggestionsPage.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
imageHeaders
→ Map<
String, String> ? -
Additional headers for the image provider, for example for authentication.
final
- isAdmin → bool
-
If
true
then adminSettings will be used instead of user account.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- locale → String?
-
Current locale
final
-
navigatorKey of your Router
final
- onGetUserById → OnGetUserById
-
Callback returning the current user (SuggestionAuthor).
final
- onSaveToGallery → OnSaveToGalleryCallback?
-
Callback processing saving photos to the gallery.
final
- onUploadMultiplePhotos → OnUploadMultiplePhotosCallback?
-
Callback processing the upload of photos.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortType → SortType
-
Initial sorting type
final
- suggestionsDataSource → SuggestionsDataSource
-
Implementation of SuggestionsDataSource.
final
- theme → SuggestionsTheme
-
Current module theme.
final
- userId → String
-
Current user id.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SuggestionsPage> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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