SuggestionsPage constructor
const
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,
Implementation
const SuggestionsPage({
required this.userId,
required this.suggestionsDataSource,
required this.theme,
required this.onGetUserById,
this.navigatorKey,
this.adminSettings,
this.isAdmin = false,
this.onSaveToGallery,
this.onUploadMultiplePhotos,
this.appBarTitle,
this.imageHeaders,
this.locale,
this.sortType = SortType.upvotes,
super.key,
}) : assert(
(isAdmin && adminSettings != null) || !isAdmin,
'if isAdmin == true, then adminSettings cannot be null',
);