using System.Collections.Generic ;
using Unity.UIWidgets.foundation ;
using Unity.UIWidgets.painting ;
using Unity.UIWidgets.widgets ;
using UnityEngine ;
public bool debugValidateChild ( RenderObject child ) {
public virtual bool debugValidateChild ( RenderObject child ) {
D . assert ( ( ) = > {
if ( ! ( child is ChildType ) ) {
throw new UIWidgetsError (
public abstract class RenderObjectWithChildMixinRenderBox < ChildType > : RenderBox , RenderObjectWithChildMixin < ChildType > , RenderObjectWithChildMixin where ChildType : RenderObject {
public bool debugValidateChild ( RenderObject child ) {
public virtual bool debugValidateChild ( RenderObject child ) {
D . assert ( ( ) = > {
if ( ! ( child is ChildType ) ) {
throw new UIWidgetsError (
public virtual void insert ( ChildType child , ChildType after = null ) {
D . assert ( child ! = this , ( ) = > "A RenderObject cannot be inserted into itself." ) ;
D . assert ( after ! = this , ( ) = >
"A RenderObject cannot simultaneously be both the parent and the sibling of another RenderObject." ) ;
D . assert ( after ! = this ,
( ) = > "A RenderObject cannot simultaneously be both the parent and the sibling of another RenderObject." ) ;
adoptChild ( child ) ;
_insertIntoChildList ( child , after ) ;
}
public virtual void insert ( ChildType child , ChildType after = null ) {
D . assert ( child ! = this , ( ) = > "A RenderObject cannot be inserted into itself." ) ;
D . assert ( after ! = this , ( ) = >
"A RenderObject cannot simultaneously be both the parent and the sibling of another RenderObject." ) ;
D . assert ( after ! = this ,
( ) = > "A RenderObject cannot simultaneously be both the parent and the sibling of another RenderObject." ) ;
adoptChild ( child ) ;
_insertIntoChildList ( child , after ) ;
}
public virtual void insert ( ChildType child , ChildType after = null ) {
D . assert ( child ! = this , ( ) = > "A RenderObject cannot be inserted into itself." ) ;
D . assert ( after ! = this ,
( ) = > "A RenderObject cannot simultaneously be both the parent and the sibling of another RenderObject." ) ;
D . assert ( child ! = after , ( ) = > "A RenderObject cannot be inserted after itself." ) ;
( ) = > "A RenderObject cannot simultaneously be both the parent and the sibling of another RenderObject." ) ;
D . assert ( child ! = after , ( ) = > "A RenderObject cannot be inserted after itself." ) ;
adoptChild ( child ) ;
_insertIntoChildList ( child , after ) ;
}
invokeLayoutCallback ( _callback ) ;
}
}
public abstract class RelayoutWhenSystemFontsChangeMixinRenderBox : RenderBox {
protected void systemFontsDidChange ( ) {
markNeedsLayout ( ) ;
}
public override void attach ( object owner ) {
base . attach ( owner ) ;
PaintingBinding . instance . systemFonts . addListener ( systemFontsDidChange ) ;
}
public override void detach ( ) {
PaintingBinding . instance . systemFonts . removeListener ( systemFontsDidChange ) ;
base . detach ( ) ;
}
}
}