collapse method

Future<void> collapse({
  1. bool animated = true,
})

Collapses the search bar back to icon-only mode.

Implementation

Future<void> collapse({bool animated = true}) async {
  final channel = _channel;
  if (channel == null) return;
  await channel.invokeMethod('collapse', {'animated': animated});
}