params property

Map<String, dynamic> get params

Implementation

Map<String,dynamic> get params {
  return switch(this){
    _PlaySourceWithFile(:final file) => {
      "url": file.path,
      "type": 2
    },
    _PlaySourceWithNetwork(:final uri) => {
      "url": uri.toString(),
      "type": 1
    },
  };

}