mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -399,12 +399,12 @@ class _MarqueeSimulation extends Simulation {
|
||||
class ContextSingleTicker implements TickerProvider {
|
||||
Ticker? _ticker;
|
||||
BuildContext context;
|
||||
final bool autoStart;
|
||||
final bool Function()? autoStart;
|
||||
|
||||
ContextSingleTicker(this.context, {this.autoStart = true});
|
||||
ContextSingleTicker(this.context, {this.autoStart});
|
||||
|
||||
void initStart() {
|
||||
if (autoStart) {
|
||||
if (autoStart?.call() ?? true) {
|
||||
_ticker?.start();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user