variable Classification throwing null value, not thowing the output labels #114
Unanswered
dzikrifazahk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
if (classification != null)
...(classification!.entries.toList()
..sort(
(a, b) => a.value.compareTo(b.value),
))
.reversed
.take(3)
.map(
(e) => Container(
padding: const EdgeInsets.all(8),
color: Colors.white,
child: Row(
children: [
Text(e.key),
const Spacer(),
Text(e.value.toStringAsFixed(2))
],
),
),
),
Beta Was this translation helpful? Give feedback.
All reactions