The plugin for go-flutter to shutdown platform windowslinuxmac only

Getting Started

Install

Add this to your package’s pubspec.yaml file:

1
2
dependencies:
platform_device_id: ^0.1.0

Usage

a simple usage example:

1
2
3
import 'package:shutdown_platform/shutdown_platform.dart';

String out = await ShutdownPlatform.shutdownNow;

Use go-flutter

Usage

Import as:

1
import shutdown_platform "github.com/BestBurning/shutdown_platform/go"

Then add the following option to your go-flutter application options:

1
flutter.AddPlugin(&shutdown_platform.ShutdownPlatformPlugin{}),

Pub Dev

it’s published to pub.dev

Source Code

shutdown_platform open source with Github
and the licenses is BSD-3-Clause