hasSeen method

  1. @override
Future<bool> hasSeen(
  1. String tourId
)
override

Returns whether tourId has been marked as seen.

Implementation

@override
Future<bool> hasSeen(String tourId) async {
  _validate(tourId);
  final preferences = await SharedPreferences.getInstance();
  return preferences.getBool('$_prefix$tourId') ?? false;
}