buildSwitcherWithLabel method

Widget buildSwitcherWithLabel(
  1. BuildContext context
)

Method that return a Row with the label (Text) and the Switcher.

Implementation

Widget buildSwitcherWithLabel(BuildContext context) {
  return Row(
    mainAxisAlignment: mainAxisAlignment,
    children: <Widget>[
      Padding(
        padding: const EdgeInsets.only(bottom: 4.0, right: 8.0),
        child: Text(
          label??'',
          style: labelStyle,
        ),
      ),
      switcherWidget,
    ],
  );
}