runFullstoryWidget function
void
runFullstoryWidget(
- 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 runWidget, but allows Fullstory to capture data needed for session replay using FullstoryBinding.
Like with runWidget, this will not wrap the passed app with a default
View, so be sure to provide your own!
Fullstory may be further configured by passing config.
Other fields are deprecated and will be removed in version 1.80.0.
Implementation
void runFullstoryWidget(
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(app, binding, 'runFullstoryWidget', logLevel: logLevel);
}