useScreen method

void useScreen({
  1. Widget base(
    1. Niku
    )?,
  2. Widget xs(
    1. Niku
    )?,
  3. Widget sm(
    1. Niku
    )?,
  4. Widget md(
    1. Niku
    )?,
  5. Widget lg(
    1. Niku
    )?,
  6. Widget xl(
    1. Niku
    )?,
})
void useScreen({
  // > 568px
  Widget Function(Niku)? base,
  // 568 - 640px
  Widget Function(Niku)? xs,
  // 640 - 768px
  Widget Function(Niku)? sm,
  // 768 - 920px
  Widget Function(Niku)? md,
  // 920 - 1024px
  Widget Function(Niku)? lg,
  // > 1024px
  Widget Function(Niku)? xl,
})

Implementation

void useScreen({
  // > 568px
  Widget Function(Niku)? base,
  // 568 - 640px
  Widget Function(Niku)? xs,
  // 640 - 768px
  Widget Function(Niku)? sm,
  // 768 - 920px
  Widget Function(Niku)? md,
  // 920 - 1024px
  Widget Function(Niku)? lg,
  // > 1024px
  Widget Function(Niku)? xl,
}) =>
    $parent
      ..useScreen(
        base: base,
        xs: xs,
        sm: sm,
        md: md,
        lg: lg,
        xl: xl,
      );