Pin constructor
Pin({})
Implementation
Pin(
{this.start,
this.startFraction,
this.end,
this.endFraction,
this.size,
this.middle})
: assert(!(start != null && startFraction != null),
"Cannot have both start and startFraction values."),
assert(!(end != null && endFraction != null),
"Cannot have both end and endFraction values."),
assert(!(middle != null && size == null),
"A size value is required with a middle value."),
assert(
!(middle != null &&
(start ?? startFraction ?? end ?? endFraction) != null),
"Only a size value can be used with a middle value."),
assert(
!(size != null &&
(start ?? startFraction) != null &&
(end ?? endFraction) != null),
"Cannot have both start and end values when a size value is used.");