lifetime property
FlutterApplicationLifetime
lifetime
Implementation
FlutterApplicationLifetime get lifetime =>
services.getRequiredService<HostApplicationLifetime>()
as FlutterApplicationLifetime;