number<num> static method

num number<num>({
  1. required BuildContext context,
  2. required num mobile,
  3. num? tablet,
  4. num? desktop,
  5. num? large,
  6. Unit unit = Unit.px,
})

Adaptively provides the number based on type with proper unit assign to it By default the Unit objects is just pixel Unit available API are Unit.p, Unit.px, Unit.vh, Unit.vmax, Unit.vmin, Unit.vw

Implementation

static num number<num>({
  required BuildContext context,
  required num mobile,
  num? tablet,
  num? desktop,
  num? large,
  Unit unit = Unit.px,
}) {
  return Bamboo<num>(
    mobile: mobile,
    tablet: tablet,
    desktop: desktop,
    context: context,
    large: large,
    unit: unit,
  ).adaptive;
}