isMainFrame property
Whether the main frame's document sent the message, when the platform
reports it; null otherwise.
Windows and Web receive main-document messages only. Android, iOS, macOS, and Linux can distinguish messages sent by child frames. A document's URL alone cannot establish whether it belongs to the main frame.
Implementation
final bool? isMainFrame;