fbmobile/lib/core/services/stoppable_service.dart

18 lines
290 B
Dart
Raw Normal View History

2021-02-02 14:33:23 +00:00
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;
}
}