responsive method Null safety

List<Widget> responsive(
  1. {double maxWidth = kDefaultResponsiveWidth,
  2. ResponsiveMaxWidth? calculated}
)

Implementation

List<Widget> responsive({
  double maxWidth = kDefaultResponsiveWidth,
  ResponsiveMaxWidth? calculated,
}) {
  return [
    for (var self in this)
      ResponsiveConstraint(
        child: self,
        maxWidth: maxWidth,
        calculated: calculated,
      ),
  ];
}