isDarkmode static method
Implementation
static bool isDarkmode() {
if (!kIsMPFlutter) {
return false;
}
mpjs.JSObject wx = mpjs.context["wx"];
final result = wx.callMethod("getSystemInfoSync", [{}]);
return result["theme"] == "dark";
}