icon property

IconData? icon
final

An optional icon that will be displayed at the top of the modal. Useful for alert modals.

Implementation

final IconData? icon;