Linter errors fixes. Move secrandom native to cw_core

This commit is contained in:
M
2022-01-14 14:19:25 +02:00
parent c5ad751279
commit 30b77ebd58
13 changed files with 89 additions and 29 deletions
-13
View File
@@ -1,13 +0,0 @@
import 'dart:typed_data';
import 'package:flutter/services.dart';
const utils = const MethodChannel('com.cake_wallet/native_utils');
Future<Uint8List> secRandom(int count) async {
try {
return await utils.invokeMethod<Uint8List>('sec_random', {'count': count});
} on PlatformException catch (_) {
return Uint8List.fromList([]);
}
}