getAppBarText method

Text getAppBarText(
  1. ZugClient client, {
  2. String? text,
  3. Color textColor = Colors.black,
})

Implementation

Text getAppBarText(ZugClient client, {String? text, Color textColor = Colors.black}) {
  return Text(text ?? "${client.user}: ${client.currentArea.exists ? client.currentArea.title : "-"}",
      style: TextStyle(color: textColor));
}