Ai
1 Star 0 Fork 0

studvc/go-flutter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
isolate.go 535 Bytes
一键复制 编辑 原始数据 按行查看 历史
pchampio 提交于 2020-06-03 05:24 +08:00 . fix: typos & fixes: #460
package flutter
import "github.com/go-flutter-desktop/go-flutter/plugin"
type isolatePlugin struct{}
// hard-coded because there is no swappable renderer interface.
var defaultIsolatePlugin = &isolatePlugin{}
func (p *isolatePlugin) InitPlugin(messenger plugin.BinaryMessenger) error {
channel := plugin.NewBasicMessageChannel(messenger, "flutter/isolate", plugin.StringCodec{})
// Ignored: go-flutter doesn't support isolate events
channel.HandleFunc(func(_ interface{}) (interface{}, error) { return nil, nil })
return nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/studvc/go-flutter.git
git@gitee.com:studvc/go-flutter.git
studvc
go-flutter
go-flutter
master

搜索帮助