The plugin for go-flutter to shutdown platform windowslinuxmac only

Getting Started

Install

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

dependencies:
platform_device_id: ^0.1.0

Usage

a simple usage example:

import 'package:shutdown_platform/shutdown_platform.dart';

String out = await ShutdownPlatform.shutdownNow;

Use go-flutter

Usage

Import as:

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

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

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