maybeInit static method

Future<void> maybeInit([
  1. AppInfoService? s
])

initialize the app info service if it hasn't been initialized yet. this does not throw an error if the initialization fails. It should only be used with the maybe getter.

Implementation

static Future<void> maybeInit([AppInfoService? s]) async =>
    tryCatchAsync(() => init(s));