SkeletonLineStyle constructor
const
SkeletonLineStyle({
- double? width = double.infinity,
- double? height = 18,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
- bool? randomLength,
- double? minLength,
- double? maxLength,
- BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(2)),
- AlignmentGeometry alignment = AlignmentDirectional.centerStart,
Implementation
const SkeletonLineStyle(
{this.width = double.infinity,
this.height = 18,
this.padding = const EdgeInsets.all(0),
this.randomLength,
this.minLength,
this.maxLength,
this.borderRadius = const BorderRadius.all(Radius.circular(2)),
this.alignment = AlignmentDirectional.centerStart})
: assert(minLength == null ||
(minLength > 0 && (maxLength == null || maxLength > minLength))),
assert(maxLength == null ||
(maxLength > 0 && (minLength == null || minLength < maxLength)));