Is it possible to define “interface” that will accept class instance which type/implementation is not known ahead?

后端 未结 0 1229
终归单人心
终归单人心 2021-01-29 01:15

I am new to dart. In typescript I could do something like this:

// business-logic.ts

interface Item { name: string; }

int         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题