TextRenderViewModel.copy constructor
TextRenderViewModel.copy(
- int id,
- int instanceId,
- String className,
- RenderContext<
LoadInstanceContext> context, - TextRenderViewModel viewModel,
Implementation
TextRenderViewModel.copy(
int id,
int instanceId,
String className,
RenderContext context,
TextRenderViewModel viewModel,
) : super.copy(id, instanceId, className, context, viewModel) {
padding = viewModel.padding;
var data = viewModel.data;
if (data != null) {
data = TextData(
data.maxLines,
data.text,
data.textAlign,
data.textScaleFactor,
data.textOverflow,
);
}
}