FakeInAppMessaging constructor
FakeInAppMessaging({
- List<
InAppMessage> messages = const [], - ValueChanged<
String> ? onUrl, - InAppMessageBuilder? builder,
- bool shouldShow(
- InAppMessage message
Shows messages, highest priority first, on navigatorKey's
navigator, as InAppMessaging.initialize does with what it fetched.
Implementation
FakeInAppMessaging({
required GlobalKey<NavigatorState> navigatorKey,
this.messages = const [],
ValueChanged<String>? onUrl,
InAppMessageBuilder? builder,
bool Function(InAppMessage message)? shouldShow,
}) : _navigatorKey = navigatorKey,
_onUrl = onUrl,
_builder = builder,
_shouldShow = shouldShow;