LexioLabScope.withClient constructor
const
LexioLabScope.withClient({
- Key? key,
- required LexioLabClient client,
- required Widget child,
- LLFontRegistry? fontRegistry,
- LLFontFetcher? fontFetcher,
- Duration pollInterval = Duration.zero,
- bool refreshOnResume = false,
Uses a client the app already built — tests, several roots, or a DI container. The scope never disposes a client it did not create.
Implementation
const LexioLabScope.withClient({
super.key,
required LexioLabClient this.client,
required this.child,
this.fontRegistry,
this.fontFetcher,
this.pollInterval = Duration.zero,
this.refreshOnResume = false,
}) : config = null,
deps = null;