of static method

  1. @useResult
FPlatformVariant of(
  1. BuildContext context
)

Returns the current FPlatformVariant.

Implementation

@useResult
static FPlatformVariant of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<FAdaptiveScope>()?.platform ?? _platform;