Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing future return values #272

Merged
merged 1 commit into from
Jan 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/src/window_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,11 @@ class WindowManager {
}

/// Sets whether the window can be manually resized by the user.
setResizable(bool isResizable) {
Future<void> setResizable(bool isResizable) async {
final Map<String, dynamic> arguments = {
'isResizable': isResizable,
};
_channel.invokeMethod('setResizable', arguments);
await _channel.invokeMethod('setResizable', arguments);
}

/// Returns `bool` - Whether the window can be moved by user.
Expand All @@ -392,11 +392,11 @@ class WindowManager {
/// Sets whether the window can be moved by user.
///
/// @platforms macos
setMovable(bool isMovable) {
Future<void> setMovable(bool isMovable) async {
final Map<String, dynamic> arguments = {
'isMovable': isMovable,
};
_channel.invokeMethod('setMovable', arguments);
await _channel.invokeMethod('setMovable', arguments);
}

/// Returns `bool` - Whether the window can be manually minimized by the user.
Expand All @@ -409,11 +409,11 @@ class WindowManager {
/// Sets whether the window can be manually minimized by user.
///
/// @platforms macos,windows
setMinimizable(bool isMinimizable) {
Future<void> setMinimizable(bool isMinimizable) async {
final Map<String, dynamic> arguments = {
'isMinimizable': isMinimizable,
};
_channel.invokeMethod('setMinimizable', arguments);
await _channel.invokeMethod('setMinimizable', arguments);
}

/// Returns `bool` - Whether the window can be manually closed by user.
Expand Down