Skip to content

Instantly share code, notes, and snippets.

View romaomb's full-sized avatar

Matheus Romão romaomb

View GitHub Profile
@romaomb
romaomb / main.dart
Created May 21, 2020 13:02
EventChannel's sample implementation
import 'dart:async';
import 'package:flutter/services.dart';
class EventChannelSample {
final _channel = EventChannel('codes.romao.event');
StreamSubscription _channelSubscription;
EventChannelSample() {
_channelSubscription = _channel
.receiveBroadcastStream()
@romaomb
romaomb / main.dart
Last active May 21, 2020 13:03
MethodChannel's sample implementation
import 'package:flutter/services.dart';
class MethodChannelSample {
final _channel = MethodChannel('codes.romao.method');
MethodChannelSample() {
_channel.setMethodCallHandler(_methodHandler);
}

Keybase proof

I hereby claim:

  • I am romaomatt on github.
  • I am romaomatt (https://keybase.io/romaomatt) on keybase.
  • I have a public key whose fingerprint is A438 65F5 6B66 4158 D0AE 99BC 05C3 E29C 3FFA F12F

To claim this, I am signing this object: