mirror of
https://github.com/Iconica-Development/flutter_introduction.git
synced 2025-05-19 03:53:45 +02:00
19 lines
588 B
Dart
19 lines
588 B
Dart
// SPDX-FileCopyrightText: 2022 Iconica
|
|
//
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
import 'package:flutter_introduction_interface/flutter_introduction_interface.dart';
|
|
|
|
class IntroductionService {
|
|
IntroductionService([IntroductionInterface? dataProvider])
|
|
: _dataProvider = dataProvider ?? LocalIntroductionDataProvider();
|
|
|
|
late final IntroductionInterface _dataProvider;
|
|
|
|
Future<void> onSkip() => _dataProvider.setCompleted(value: true);
|
|
|
|
Future<void> onComplete() => _dataProvider.setCompleted(value: true);
|
|
|
|
Future<bool> shouldShow() => _dataProvider.shouldShow();
|
|
}
|