ofWidget<T extends Widget> static method

T? ofWidget<T extends Widget>(
  1. T w
)

This function is used to determine whether the widget will be displayed or not, depending of running mode.

see KareeApplicationType

Implementation

static T? ofWidget<T extends Widget>(T w) =>
    KareeMaterialApp.type != KareeApplicationType.module ? w : null;