Files
sdk-for-dart/docs/examples/tablesdb/create-boolean-column.md
Jake Barnby 9a283cca69 Fix casing
2025-08-21 22:19:54 +12:00

530 B

import 'package:dart_appwrite/dart_appwrite.dart';

Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key

TablesDB tablesDB = TablesDB(client);

ColumnBoolean result = await tablesDB.createBooleanColumn( databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '', xrequired: false, xdefault: false, // (optional) array: false, // (optional) );