LayzResponsiveValue<T> constructor Null safety

LayzResponsiveValue<T>(
  1. {ValueGetter<T>? xlarge,
  2. ValueGetter<T>? large,
  3. ValueGetter<T>? medium,
  4. ValueGetter<T>? small,
  5. ValueGetter<T>? xsmall,
  6. ValueGetter<T>? fallback,
  7. bool allowNull = false}
)

Implementation

LayzResponsiveValue({
  ValueGetter<T>? xlarge,
  ValueGetter<T>? large,
  ValueGetter<T>? medium,
  ValueGetter<T>? small,
  ValueGetter<T>? xsmall,
  ValueGetter<T>? fallback,
  bool allowNull = false,
}) {
  values = ResponsiveValue(
    allowNull: allowNull,
    large: large,
    medium: medium,
    small: small,
    xlarge: xlarge,
    xsmall: xsmall,
    fallback: fallback,
  );
}