debugBuildPopoverPayload function

  1. @visibleForTesting
Map<String, Object?> debugBuildPopoverPayload({
  1. required int session,
  2. required CNPopoverContent content,
  3. required Rect anchor,
  4. required String edge,
  5. double? width,
  6. int? tint,
  7. bool? isDark,
  8. BuildContext? context,
})

Builds the payload of CNPopover.show's show call.

Exposed for tests: it is the contract shared with CNPopoverManager.swift on both platforms. edge is top, bottom, left or right.

Implementation

@visibleForTesting
Map<String, Object?> debugBuildPopoverPayload({
  required int session,
  required CNPopoverContent content,
  required Rect anchor,
  required String edge,
  double? width,
  int? tint,
  bool? isDark,
  BuildContext? context,
}) => {
  'session': session,
  'anchor': _rectMap(anchor),
  'edge': edge,
  'content': debugEncodePopoverContent(content, context: context),
  'width': ?width,
  'tint': ?tint,
  'isDark': ?isDark,
};