centralstation 0.9.9 centralstation: ^0.9.9 copied to clipboard
Central Station for Command and Event Handling
import 'package:flutter/material.dart';
import "package:centralstation/centralstation.dart";
import 'command.dart';
import 'ip.dart';
void main() {
CentralStationRuntime runtime = CentralStationRuntime(
commandHandlers: {
GetIPCommand: getIp,
},
eventHandlers: [],
);
runApp(MaterialApp(
home: CentralStation(
runtime: runtime,
child: IPWidget(),
),
));
}