buildChildren method
Implementation
List<Widget> buildChildren() {
if (childPosition == ChildPosition.left || childPosition == ChildPosition.top) {
return <Widget>[
if (child != null) ...<Widget>[
child ?? const SizedBox(),
buildSizeBox()
],
Text(
text,
style: style,
softWrap: true,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
];
} else {
return <Widget>[
Text(text,
style: style,
softWrap: true,
maxLines: 1,
overflow: TextOverflow.ellipsis),
if (child != null) ...<Widget>[
buildSizeBox(),
child ?? const SizedBox()
]
];
}
}