MenuImage.withImage constructor

MenuImage.withImage(
  1. FutureOr<Image?>? imageProvider(
    1. IconThemeData theme,
    2. int devicePixelRatio
    )
)

Creates menu image from specified image provider function.

Implementation

factory MenuImage.withImage(
  FutureOr<ui.Image?>? Function(IconThemeData theme, int devicePixelRatio)
      imageProvider,
) =>
    ImageProviderMenuImage(imageProvider);