global_shared 0.1.0
global_shared: ^0.1.0 copied to clipboard
Share object globally.
global_shared #
Features #
- Share object globally.
Example #
import 'package:global_shared/global_shared.dart';
void main() {
GlobalShared().put("example", Example(text: "Example"));
Example example = GlobalShared().get("example");
print(example.text);
}
class Example {
String? text;
Example({this.text});
}