fromState static method

InstaCropData fromState({
  1. required AssetEntity asset,
  2. required CropState? cropState,
})

Implementation

static InstaCropData fromState({
  required AssetEntity asset,
  required CropState? cropState,
}) {
  return InstaCropData(
    asset: asset,
    cropParam: cropState?.internalParameters,
    scale: cropState?.scale ?? 1.0,
    area: cropState?.area,
  );
}