copy method

Future<SecurityResult<void>> copy(
  1. String value, {
  2. Duration expiresAfter = PasteboardUseCase.defaultExpiry,
})

Copies value as local-only / sensitive and removes it again after expiresAfter (default 60 seconds, at most one hour).

Implementation

Future<SecurityResult<void>> copy(
  String value, {
  Duration expiresAfter = PasteboardUseCase.defaultExpiry,
}) => _useCase.copy(value: value, expiresAfter: expiresAfter);