defaultChild method

Widget defaultChild()

Implementation

Widget defaultChild() {
  if (loading) {
    return CircularProgressIndicator(
      valueColor: new AlwaysStoppedAnimation<Color>(Colors.grey),
    );
  } else {
    return Icon(
      iconData ?? Icons.broken_image,
      color: Colors.white70,
    );
  }
}