SkeletonLineStyle constructor

const SkeletonLineStyle({
  1. double? width = double.infinity,
  2. double? height = 18,
  3. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  4. bool? randomLength,
  5. double? minLength,
  6. double? maxLength,
  7. BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(2)),
  8. 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)));