Schema constructor
const
Schema({
- Key? key,
- SchemaConfiguration config = const SchemaConfiguration(),
- required List<
Block< blocks,Object> > - BlockLayoutCallback? onBlocksLayout,
- GridCallback? onGridUpdate,
- BlockAreaVoidCallback? onBlockAreaTap,
Creates a Schema.
config
: Configuration for the schema. Defaults to SchemaConfiguration.blocks
: The list of blocks to display in the schema.onBlocksLayout
: Callback for when the blocks are laid out.onGridUpdate
: Callback for when the grid is updated.onBlockAreaTap
: Callback for when a block is tapped. This callback returns the BlockArea that was tapped and the global position of the tap.
Implementation
const Schema({
super.key,
this.config = const SchemaConfiguration(),
required this.blocks,
this.onBlocksLayout,
this.onGridUpdate,
this.onBlockAreaTap,
});