current<T> static method

T current<T>({
  1. T nativeResolver()?,
  2. T androidResolver()?,
  3. T iOSResolver()?,
  4. T chromeExtensionResolver()?,
  5. T fuschiaResolver()?,
  6. T linuxResolver()?,
  7. T macOSResolver()?,
  8. T webResolver()?,
  9. T windowsResolver()?,
  10. T defaultResolver()?,
})

Implementation

static T current<T>({
  T Function()? nativeResolver,
  T Function()? androidResolver,
  T Function()? iOSResolver,
  T Function()? chromeExtensionResolver,
  T Function()? fuschiaResolver,
  T Function()? linuxResolver,
  T Function()? macOSResolver,
  T Function()? webResolver,
  T Function()? windowsResolver,
  T Function()? defaultResolver,
}) {
  return PlatformResolver(
    nativeResolver: nativeResolver,
    androidResolver: androidResolver,
    iOSResolver: iOSResolver,
    chromeExtensionResolver: chromeExtensionResolver,
    fuschiaResolver: fuschiaResolver,
    linuxResolver: linuxResolver,
    macOSResolver: macOSResolver,
    webResolver: webResolver,
    windowsResolver: windowsResolver,
    defaultResolver: defaultResolver,
  ).resolve();
}