CropEditorAspectRatioOptions typedef

CropEditorAspectRatioOptions = Widget Function(double aspectRatio, double originalAspectRatio)

A function type that defines a widget for selecting aspect ratio options in a crop editor.

The function takes two parameters:

  • aspectRatio: The selected aspect ratio.
  • originalAspectRatio: The original aspect ratio of the image.

Returns a Widget that allows the user to select the given aspect ratio.

Implementation

typedef CropEditorAspectRatioOptions = Widget Function(
  double aspectRatio,
  double originalAspectRatio,
);