FlutterMcpPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • FlutterMcpPlatform
Implementers

Constructors

FlutterMcpPlatform()

Properties

hashCode → int
The hash code for this object.
no setterinherited
isBackgroundServiceRunning → bool
Check if background service is running
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelAllNotifications() → Future<void>
Cancel all notifications
checkPermission(String permission) → Future<bool>
Check if a permission is granted
getPlatformVersion() → Future<String?>
Returns a String containing the version of the platform.
initialize(MCPConfig config) → Future<void>
Initialize the platform implementation with config
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission(String permission) → Future<bool>
Request a permission
requestPermissions(List<String> permissions) → Future<Map<String, bool>>
Request multiple permissions
secureRead(String key) → Future<String?>
Read a value from secure storage
secureStore(String key, String value) → Future<void>
Store a value securely
showNotification({required String title, required String body, String? icon, String id = 'mcp_notification'}) → Future<void>
Show notification
shutdown() → Future<void>
Shutdown all services
startBackgroundService() → Future<bool>
Start background service
stopBackgroundService() → Future<bool>
Stop background service
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance ↔ FlutterMcpPlatform
getter/setter pair