runFullstoryApp function
void
runFullstoryApp(
- Widget app, {
- FullstoryConfiguration? config,
- LogLevel logLevel = LogLevel.note,
- bool logScanMetrics = kDebugMode,
- bool shortenSelectors = true,
- bool captureImages = true,
- bool capturePainters = false,
- Set<
Rasterizer< rasterizers = const {},RenderBox> >
Runs the given app inside a Fullstory-instrumented binding.
This is equivalent to calling the standard runApp, but allows Fullstory to capture data needed for session replay using FullstoryBinding.
Fullstory may be further configured by passing config.
Other fields are deprecated and will be removed in version 1.80.0.
Implementation
void runFullstoryApp(
Widget app, {
FullstoryConfiguration? config,
LogLevel logLevel = LogLevel.note,
bool logScanMetrics = kDebugMode,
bool shortenSelectors = true,
bool captureImages = true,
bool capturePainters = false,
Set<Rasterizer> rasterizers = const {},
}) {
final WidgetsBinding binding = FullstoryBinding.ensureInitialized();
Kernel.instance
?..init()
..fsConfig =
config ??
FullstoryConfiguration(
logScanMetrics: logScanMetrics,
shortenSelectors: shortenSelectors,
captureImages: captureImages,
capturePainters: capturePainters,
rasterizers: rasterizers,
);
_runWidget(
binding.wrapWithDefaultView(app),
binding,
'runFullstoryApp',
logLevel: logLevel,
);
}