loading static method

Widget loading({
  1. bool title = true,
  2. bool subtitle = true,
  3. bool leading = true,
  4. int? subtitleMaxLines = 2,
  5. bool trailing = false,
})

Implementation

static Widget loading(
        {bool title = true,
        bool subtitle = true,
        bool leading = true,
        int? subtitleMaxLines = 2,
        bool trailing = false}) =>
    ListTile(
      title: title
          ? Text(faker.lorem
              .words(faker.randomGenerator.integer(7, min: 3))
              .join(" "))
          : null,
      subtitle: subtitle
          ? Text(
              faker.lorem
                  .sentences(faker.randomGenerator.integer(3, min: 1))
                  .join(" "),
              maxLines: subtitleMaxLines,
            )
          : null,
    ).shimmer();