visibility method

Widget visibility({
  1. bool visible = true,
  2. Key? key,
})

Implementation

Widget visibility({
  bool visible = true,
  Key? key,
}) {
  return Visibility(
    child: this,
    visible: visible,
    key: key,
  );
}