I'm trying to use etherjs in my flutter project and the ethers for flutter does not have all the functions that are available in the original package. Can I refer to this How to use JavaScript in Flutter Apps? YouTube video to move all the functions that I needed into a `JS file.
The code in the Etherjs Github has this require("@ethersproject/logger");
which I'm not sure if I can include that as well.Can I run npm install
to get the package or what should I do? I need some advice.
var logger_1 = require("@ethersproject/logger");
var _version_1 = require("./_version");
var logger = new logger_1.Logger(_version_1.version);
function addSlice(array) {
if (array.slice) {
return array;
}
array.slice = function () {
var args = Array.prototype.slice.call(arguments);
return addSlice(new Uint8Array(Array.prototype.slice.apply(array, args)));
};
return array;
}