ensureReady static method

Future<ULocationError?> ensureReady({
  1. bool always = false,
})

Asks if needed; returns null when location is usable, else the reason (show a message or open settings). final err = await ULocation.ensureReady(); if (err != null) …

Implementation

static Future<ULocationError?> ensureReady({bool always = false}) => ULocationChannel.ensureReady(always: always);