debugBuildPopoverPayload function
Map<String, Object?>
debugBuildPopoverPayload({
- required int session,
- required CNPopoverContent content,
- required Rect anchor,
- required String edge,
- double? width,
- int? tint,
- bool? isDark,
- 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,
};