dispatchBackgroundEncrypt method

  1. @override
Future<List> dispatchBackgroundEncrypt(
  1. List args
)
override

Uses compute to do encryption in the background.

Implementation

@override
Future<List> dispatchBackgroundEncrypt(List args) async {
  return await compute(
    _computeEncrypt,
    [secretKeyLength, nonceLength, ...args],
    debugLabel: 'BackgroundAesGcm.encrypt',
  );
}