sign method

dynamic sign(
  1. BuildContext context, {
  2. List<EFile>? files,
  3. StreamController<List<SignedFile>>? onFinish,
})

Implementation

sign(
  BuildContext context, {
  List<EFile>? files,
  StreamController<List<SignedFile>>? onFinish,
}) async {
  await initializeGetIt();

  final bloc = getIt<StepsBloc>();
  bloc.files = files ?? [];
  if (onFinish != null) bloc.addEventListener(onFinish);

  await _showModal(context);
}