fbmobile/lib/core/services/stoppable_service.dart
2021-02-02 15:33:23 +01:00

17 lines
290 B
Dart

import 'package:flutter/material.dart';
abstract class StoppableService {
bool _serviceStopped = false;
bool get serviceStopped => _serviceStopped;
@mustCallSuper
void stop() {
_serviceStopped = true;
}
@mustCallSuper
void start() {
_serviceStopped = false;
}
}