dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
607 B
28 lines
607 B
1 year ago
|
import 'package:meta/meta.dart' show immutable;
|
||
|
|
||
|
@immutable
|
||
2 years ago
|
class OptionalSize {
|
||
1 year ago
|
const OptionalSize(
|
||
2 years ago
|
this.width,
|
||
|
this.height,
|
||
|
);
|
||
|
|
||
|
/// If non-null, requires the child to have exactly this width.
|
||
|
/// If null, the child is free to choose its own width.
|
||
|
final double? width;
|
||
|
|
||
|
/// If non-null, requires the child to have exactly this height.
|
||
|
/// If null, the child is free to choose its own height.
|
||
|
final double? height;
|
||
1 year ago
|
|
||
|
OptionalSize copyWith({
|
||
|
double? width,
|
||
|
double? height,
|
||
|
}) {
|
||
|
return OptionalSize(
|
||
|
width ?? this.width,
|
||
|
height ?? this.height,
|
||
|
);
|
||
|
}
|
||
2 years ago
|
}
|