stack_wallet/lib/wallets/example/libepiccash.dart
2023-09-18 15:56:57 -06:00

21 lines
562 B
Dart

import 'package:flutter_libepiccash/epic_cash.dart' as lib_epiccash;
///
/// Wrapped up calls to flutter_libepiccash.
///
/// Should all be static calls (no state stored in this class)
///
abstract class LibEpiccash {
static bool validateSendAddress({required String address}) {
final String validate = lib_epiccash.validateSendAddress(address);
if (int.parse(validate) == 1) {
// Check if address contains a domain
if (address.contains("@")) {
return true;
}
return false;
} else {
return false;
}
}
}