manipulateImage function

Future<Uint8List> manipulateImage(
  1. ManipulationInput i
)

Implementation

Future<Uint8List> manipulateImage(ManipulationInput i) async {
  Stopwatch? stopwatch;
  if (kDebugMode) {
    stopwatch = Stopwatch()..start();
  }
  final value = await rustApi.manipulateImage(
    a: i,
  );
  if (kDebugMode && stopwatch != null) {
    log("flutter_photon_rs 2: ${stopwatch.elapsed.inMilliseconds}ms");
  }
  return value;
}