startSafeAreaObserver static method
Implementation
static void startSafeAreaObserver(SafeAreaCallback callback) {
if (!initialized) {
_injectJs();
initialized = true;
}
js.context.callMethod('SafeAreaMonitor.startSafeAreaObserver', [
js.allowInterop((num bottomInset) {
callback(bottomInset.toDouble());
})
]);
listening = true;
}