This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:livekit_client/livekit_client.dart' as livekit; | |
import 'package:permission_handler/permission_handler.dart'; | |
import 'dart:async'; | |
class RetellService { | |
livekit.Room? _room; | |
bool _connected = false; | |
final StreamController<String> _eventStreamController = | |
StreamController<String>.broadcast(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:typed_data'; | |
import 'package:record/record.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:web_socket_channel/web_socket_channel.dart'; | |
import 'package:http/http.dart' as http; | |
import 'dart:async'; | |
import 'package:mp_audio_stream/mp_audio_stream.dart'; | |
var apiToken = 'ADD API TOKEN HERE'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stylelint = require('stylelint'); | |
const valueParser = require('postcss-value-parser'); | |
const ruleName = 'plugin/valid-css-var'; | |
const messages = stylelint.utils.ruleMessages(ruleName, { | |
expected: (variable) => `Expected "${variable}" to be a valid CSS variable`, | |
}); | |
module.exports = stylelint.createPlugin(ruleName, (primaryOption, secondaryOptions, context) => { | |
return (root, result) => { |