loading static method
Widget
loading(
{ - bool title = true,
- bool subtitle = true,
- bool leading = true,
- int? subtitleMaxLines = 2,
- 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();