getLayout method
Implementation
Widget getLayout({LeftChildData? leftChild, required Widget rightChild}) {
return Container(
width: double.infinity,
child: Row(
children: [
if (leftChild == null) ...{
const SizedBox(
width: 150,
)
} else ...{
Container(
width: 150,
height: leftChild.height,
color: leftChild.color,
child: Center(
child: bodyTitleText(leftChild.string,
color: leftChild.color == Colors.transparent
? Colors.white
: leftChild.color),
)),
},
Expanded(child: rightChild)
],
),
);
}