LayoutConstraintsOptions constructor

LayoutConstraintsOptions({
  1. double? availableInlineSize,
  2. double? availableBlockSize,
  3. double? fixedInlineSize,
  4. double? fixedBlockSize,
  5. double? percentageInlineSize,
  6. double? percentageBlockSize,
  7. double? blockFragmentationOffset,
  8. BlockFragmentationType? blockFragmentationType,
  9. dynamic data,
})

Implementation

factory LayoutConstraintsOptions(
        {double? availableInlineSize,
        double? availableBlockSize,
        double? fixedInlineSize,
        double? fixedBlockSize,
        double? percentageInlineSize,
        double? percentageBlockSize,
        double? blockFragmentationOffset,
        BlockFragmentationType? blockFragmentationType,
        dynamic data}) =>
    LayoutConstraintsOptions._(
        availableInlineSize: availableInlineSize ?? undefined,
        availableBlockSize: availableBlockSize ?? undefined,
        fixedInlineSize: fixedInlineSize ?? undefined,
        fixedBlockSize: fixedBlockSize ?? undefined,
        percentageInlineSize: percentageInlineSize ?? undefined,
        percentageBlockSize: percentageBlockSize ?? undefined,
        blockFragmentationOffset: blockFragmentationOffset ?? undefined,
        blockFragmentationType: blockFragmentationType?.value ??
            BlockFragmentationType.none.value,
        data: data ?? undefined);