Skip to main content
dart_node
  • Docs
  • API
  • Blog
  • GitHub ↗
  • English
  • 中文

API Reference

  • dart_node_core
  • dart_node_express
  • dart_node_react
  • dart_node_react_native
  • dart_node_ws
  • dart_node_better_sqlite3
  • dart_node_mcp
  • dart_logging
  • reflux

Documentation

  • Getting Started
  • Why Dart?

set

void set(

  1. T newValue
)

Updates value to newValue.

  • setState documentation
  • useState 是一个 React Hook,它允许你向组件添加一个状态变量

Implementation

void set(T newValue) {
  final jsValue = switch (newValue) {
    null => null,
    final Object obj => obj.jsify(),
  };
  _setValue(jsValue);
}

Documentation

  • Getting Started
  • API Reference
  • Examples

Community

  • GitHub
  • Discord
  • Twitter

More

  • Blog
  • Dart Official
  • Flutter

© 2026 dart_node. Built with Dart.

Made for React developers. Made for Flutter developers. Made for everyone.