optional static method

OptionalLayout optional(
  1. Layout layout, {
  2. String? property,
  3. bool keepSize = false,
  4. Layout? discriminator,
})

Implementation

static OptionalLayout optional(Layout layout,
    {String? property, bool keepSize = false, Layout? discriminator}) {
  return OptionalLayout(layout,
      property: property,
      discriminator: discriminator,
      keepLayoutSize: keepSize);
}