LexioLabScope.withClient constructor

const LexioLabScope.withClient({
  1. Key? key,
  2. required LexioLabClient client,
  3. required Widget child,
  4. LLFontRegistry? fontRegistry,
  5. LLFontFetcher? fontFetcher,
  6. Duration pollInterval = Duration.zero,
  7. 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;