search method
Implementation
InputDecoration search({String? hint, required BuildContext context}) {
final theme = Theme.of(context);
return _inputDecoration!.copyWith(
hintText: hint ?? 'Input',
prefixIcon: Icon(Icons.search),
fillColor: theme.inputDecorationTheme.fillColor,
filled: true,
hintStyle: theme.inputDecorationTheme.hintStyle,
contentPadding: const EdgeInsets.fromLTRB(24, 15, 0, 15),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(4),
borderSide: BorderSide(color: theme.disabledColor),
),
enabledBorder: theme.inputDecorationTheme.enabledBorder,
focusedBorder: theme.inputDecorationTheme.focusedBorder,
);
}