Package https://github.com/ihsanberahim/laravel-mcp-serve
This file contains hidden or 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:async'; | |
import 'package:meta/meta.dart'; | |
import 'package:universal_html/html.dart' as html; | |
class Sse { | |
final html.EventSource eventSource; | |
final StreamController<String> streamController; | |
Sse._internal(this.eventSource, this.streamController); |
This file contains hidden or 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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MaskPainter extends CustomPainter { | |
@override |
This file contains hidden or 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
void main() { | |
for (int i = 0; i < 5; i++) { | |
print('hello ${i + 1}'); | |
} | |
} |
This file contains hidden or 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
class Animal { | |
String name; | |
int age; | |
Animal(this.name, this.age); | |
void speak() { | |
print('I am an animal'); | |
} | |
} |
This file contains hidden or 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
// https://chat.openai.com/share/07a8df63-7d5d-4a71-807e-354e6733a2c4 | |
import 'dart:convert'; | |
void main() { | |
List<Map<String, dynamic>> myList = [ | |
{ | |
'jenis': 'admin', | |
'id': '1', | |
'managed': [ | |
{'noPlat': '123124235.0', 'nama': 'SASUKE', 'jenisFail': 'IT', 'email': 'null'}, |
This file contains hidden or 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
// https://chat.openai.com/share/07a8df63-7d5d-4a71-807e-354e6733a2c4 | |
import 'dart:convert'; | |
void main() { | |
List<Map<String, dynamic>> myList = [ | |
{ | |
'jenis': 'admin', | |
'id': '1', | |
'managed': [ | |
{'noPlat': '123124235.0', 'nama': 'SASUKE', 'jenisFail': 'IT', 'email': 'null'}, |
NewerOlder