collapse method
Collapses the floating island back to compact mode.
Implementation
Future<void> collapse({bool animated = true}) async {
final channel = _channel;
if (channel == null) return;
await channel.invokeMethod('collapse', {'animated': animated});
}