createControl top-level property

CreateControlFactory createControl
getter/setter pair

Implementation

CreateControlFactory createControl = (CreateControlArgs args) {
  switch (args.control.type) {
    case "audiorecorder":
      return AudioRecorderControl(
          parent: args.parent, control: args.control, backend: args.backend);
    default:
      return null;
  }
};