mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 10:34:32 +00:00
fix: fake/mock clipboard getData
This commit is contained in:
parent
e81bba2357
commit
9c8101d3ea
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ class FakeClipboard implements ClipboardInterface {
|
|||
String? _value;
|
||||
|
||||
@override
|
||||
Future<ClipboardData> getData(String format) async {
|
||||
return ClipboardData(text: _value);
|
||||
Future<ClipboardData?> getData(String format) async {
|
||||
return _value == null ? null : ClipboardData(text: _value!);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue