hasStrings static method
Returns a future that resolves to true, if (and only if) the clipboard contains string data.
See also:
Implementation
static Future<bool> hasStrings() async {
final Map<String, dynamic>? result = await SystemChannels.platform.invokeMethod(
'Clipboard.hasStrings',
Clipboard.kTextPlain,
);
if (result == null) {
return false;
}
return result['value'] as bool;
}