runFlutterServer function

Future<void> runFlutterServer(
  1. ServerRunner runner
)

Call this to start your server. Runner is where you run your server but your given context

Implementation

Future<void> runFlutterServer(ServerRunner runner) async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(FlutterServerApplication(runner: runner));
}