build method
잉크 반응을 포함한 메뉴 행을 빌드한다.
Implementation
@override
Widget build(BuildContext context) {
return InkWell(
onTap: onTap,
child: Container(
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 16.0),
child: Row(
children: [
if (icon != null) icon!,
const SizedBox(width: 16.0),
Expanded(child: child),
],
),
),
);
}