File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33[ ![ Coverage] ( https://codecov.io/gh/nank1ro/solidart/branch/main/graph/badge.svg?token=HvJYtaixiW )] ( https://codecov.io/gh/nank1ro/solidart )
44[ ![ GitHub issues] ( https://img.shields.io/github/issues/nank1ro/solidart )] ( https://github.com/nank1ro/solidart/issues/ )
55[ ![ GitHub pull-requests] ( https://img.shields.io/github/issues-pr/nank1ro/solidart.svg )] ( https://gitHub.com/nank1ro/solidart/pull/ )
6- [ ![ solidart Pub Version (including pre-releases) ] ( https://img.shields.io/pub/v/solidart?include_prereleases )] ( https://pub.dev/packages/solidart )
7- [ ![ flutter_solidart Pub Version (including pre-releases) ] ( https://img.shields.io/pub/v/flutter_solidart?include_prereleases )] ( https://pub.dev/packages/flutter_solidart )
6+ [ ![ solidart Pub Version] ( https://img.shields.io/pub/v/solidart?label=solidart )] ( https://pub.dev/packages/solidart )
7+ [ ![ flutter_solidart Pub Version] ( https://img.shields.io/pub/v/flutter_solidart?label=flutter_solidart )] ( https://pub.dev/packages/flutter_solidart )
88[ ![ All Contributors] ( https://img.shields.io/github/all-contributors/nank1ro/solidart?color=ee8449&style=flat-square )] ( #contributors )
99[ ![ ] ( https://dcbadge.vercel.app/api/server/2JBzeeQShh )] ( https://discord.gg/2JBzeeQShh )
1010
@@ -41,13 +41,14 @@ final counter = Signal(0);
4141
4242The argument passed to the class is the initial value, and the return value is the signal.
4343
44-
4544To retrieve the current value, you can use:
45+
4646``` dart
4747print(counter.value); // prints 0
4848```
4949
5050To change the value, you can use:
51+
5152``` dart
5253// Set the value to 2
5354counter.value = 2;
Original file line number Diff line number Diff line change 33[ ![ Coverage] ( https://codecov.io/gh/nank1ro/solidart/branch/main/graph/badge.svg?token=HvJYtaixiW )] ( https://codecov.io/gh/nank1ro/solidart )
44[ ![ GitHub issues] ( https://img.shields.io/github/issues/nank1ro/solidart )] ( https://github.com/nank1ro/solidart/issues/ )
55[ ![ GitHub pull-requests] ( https://img.shields.io/github/issues-pr/nank1ro/solidart.svg )] ( https://gitHub.com/nank1ro/solidart/pull/ )
6- [ ![ solidart Pub Version (including pre-releases) ] ( https://img.shields.io/pub/v/solidart?include_prereleases )] ( https://pub.dev/packages/solidart )
7- [ ![ flutter_solidart Pub Version (including pre-releases) ] ( https://img.shields.io/pub/v/flutter_solidart?include_prereleases )] ( https://pub.dev/packages/flutter_solidart )
6+ [ ![ solidart Pub Version] ( https://img.shields.io/pub/v/solidart?label=solidart )] ( https://pub.dev/packages/solidart )
7+ [ ![ flutter_solidart Pub Version] ( https://img.shields.io/pub/v/flutter_solidart?label=flutter_solidart )] ( https://pub.dev/packages/flutter_solidart )
88[ ![ All Contributors] ( https://img.shields.io/github/all-contributors/nank1ro/solidart?color=ee8449&style=flat-square )] ( #contributors )
99[ ![ ] ( https://dcbadge.vercel.app/api/server/2JBzeeQShh )] ( https://discord.gg/2JBzeeQShh )
1010
@@ -41,13 +41,14 @@ final counter = Signal(0);
4141
4242The argument passed to the class is the initial value, and the return value is the signal.
4343
44-
4544To retrieve the current value, you can use:
45+
4646``` dart
4747print(counter.value); // prints 0
4848```
4949
5050To change the value, you can use:
51+
5152``` dart
5253// Set the value to 2
5354counter.value = 2;
Original file line number Diff line number Diff line change 33[ ![ Coverage] ( https://codecov.io/gh/nank1ro/solidart/branch/main/graph/badge.svg?token=HvJYtaixiW )] ( https://codecov.io/gh/nank1ro/solidart )
44[ ![ GitHub issues] ( https://img.shields.io/github/issues/nank1ro/solidart )] ( https://github.com/nank1ro/solidart/issues/ )
55[ ![ GitHub pull-requests] ( https://img.shields.io/github/issues-pr/nank1ro/solidart.svg )] ( https://gitHub.com/nank1ro/solidart/pull/ )
6- [ ![ solidart Pub Version (including pre-releases) ] ( https://img.shields.io/pub/v/solidart?include_prereleases )] ( https://pub.dev/packages/solidart )
7- [ ![ flutter_solidart Pub Version (including pre-releases) ] ( https://img.shields.io/pub/v/flutter_solidart?include_prereleases )] ( https://pub.dev/packages/flutter_solidart )
6+ [ ![ solidart Pub Version] ( https://img.shields.io/pub/v/solidart?label=solidart )] ( https://pub.dev/packages/solidart )
7+ [ ![ flutter_solidart Pub Version] ( https://img.shields.io/pub/v/flutter_solidart?label=flutter_solidart )] ( https://pub.dev/packages/flutter_solidart )
88[ ![ All Contributors] ( https://img.shields.io/github/all-contributors/nank1ro/solidart?color=ee8449&style=flat-square )] ( #contributors )
99[ ![ ] ( https://dcbadge.vercel.app/api/server/2JBzeeQShh )] ( https://discord.gg/2JBzeeQShh )
1010
@@ -40,13 +40,14 @@ final counter = Signal(0);
4040
4141The argument passed to the class is the initial value, and the return value is the signal.
4242
43-
4443To retrieve the current value, you can use:
44+
4545``` dart
4646print(counter.value); // prints 0
4747```
4848
4949To change the value, you can use:
50+
5051``` dart
5152// Set the value to 2
5253counter.value = 2;
You can’t perform that action at this time.
0 commit comments