adaptive property Null safety

PlatformAdaptiveIcons adaptive

A set of platform-adaptive Material Design icons.

Provides a convenient way to show a certain set of platform-appropriate icons on Apple platforms.

Use with the Icon class to show specific icons.

This example shows how to create a share icon that uses the material icon named "share" on non-Apple platforms, and the icon named "ios share" on Apple platforms.
Icon(
  Icons.adaptive.share,
)

See also:

Implementation

static PlatformAdaptiveIcons get adaptive => const PlatformAdaptiveIcons._();