AdaptiveInheritance constructor

const AdaptiveInheritance(
  1. {Key key,
  2. @required AdaptiveState adaptiveState,
  3. @required Widget child}
)

Implementation

const AdaptiveInheritance({
  Key key,
  @required this.adaptiveState,
  @required Widget child,
})  : assert(adaptiveState != null,
          'You need to set an adaptive state (Cupertino or Material) in order to use this inherited widget.'),
      assert(child != null, 'Specify a child widget!'),
      super(key: key, child: child);