FakeInAppMessaging constructor

FakeInAppMessaging({
  1. required GlobalKey<NavigatorState> navigatorKey,
  2. List<InAppMessage> messages = const [],
  3. ValueChanged<String>? onUrl,
  4. InAppMessageBuilder? builder,
  5. bool shouldShow(
    1. 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;