setString method
Implementation
@VoltronMethod(kSetStringMethodName)
bool setString(String text, JSPromise promise) {
Clipboard.setData(ClipboardData(text: text)).then((data) {
promise.resolve(text);
}).catchError((err) {
LogUtils.d(kTag, err.toString());
promise.reject(err.toString());
});
return true;
}