isPinned method

  1. @override
bool isPinned(
  1. BuildContext context
)
override

Whether this item must be displayed before the others.

Implementation

@override
bool isPinned(BuildContext context) => FavoriteLocationHelper().isFavorite(
  context.read<LocalDatabase>(),
  osmLocation,
);