In the last versions of Dart : 1-you can't extend from mixin like this example : mixin B { foo() => print('B'); } class mix extends B{} you will get an Error, if you want to extend from class B you should write class after the word "mixin " but in this case class B to be both a class and a mixin : mixin class B { foo() => print('B'); } class mix extends B{} 2- you can't extend using ' with' if the superclass is class like this : class M {} class C with M {}
في ميزان حسناتك ان شاء الله
الله يحفظك و يبارك فيك.
الله يجزيك الخير
🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹
كل الحب لك اخي
In the last versions of Dart :
1-you can't extend from mixin like this example :
mixin B { foo() => print('B'); }
class mix extends B{}
you will get an Error, if you want to extend from class B you should write class after the word "mixin " but in this case class B to be both a class and a mixin :
mixin class B { foo() => print('B'); }
class mix extends B{}
2- you can't extend using ' with' if the superclass is class like this :
class M {}
class C with M {}
mixin class C {foo() => 'ccc';} اظنه تحديث وبارك الله فيك شرحك جميل
أستاذ حازم بارك الله فيك one signal لا يحمل لم؟
اذا سي ورث بي مش تقاءي برث ال اي